Merge tag 'hwlock-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux

Pull hwspinlock updates from Bjorn Andersson:
 "This updates the sun6i DT binding to allow (and require) #hwlock-cells
  and makes use of device_match_of_node() to slight clean up the
  condition in of_hwspin_lock_get_id()"

* tag 'hwlock-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
  dt-bindings: hwlock: sun6i: Add #hwlock-cells to example
  dt-bindings: hwlock: sun6i: Add missing #hwlock-cells
  hwspinlock: Use device_match_of_node()
This commit is contained in:
Linus Torvalds
2023-02-26 12:05:38 -08:00
2 changed files with 6 additions and 1 deletions
@@ -26,11 +26,15 @@ properties:
resets:
maxItems: 1
'#hwlock-cells':
const: 1
required:
- compatible
- reg
- clocks
- resets
- "#hwlock-cells"
additionalProperties: false
@@ -44,5 +48,6 @@ examples:
reg = <0x01c18000 0x1000>;
clocks = <&ccu CLK_BUS_SPINLOCK>;
resets = <&ccu RST_BUS_SPINLOCK>;
#hwlock-cells = <1>;
};
...
+1 -1
View File
@@ -367,7 +367,7 @@ int of_hwspin_lock_get_id(struct device_node *np, int index)
continue;
}
if (hwlock->bank->dev->of_node == args.np) {
if (device_match_of_node(hwlock->bank->dev, args.np)) {
ret = 0;
break;
}