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:
@@ -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>;
|
||||
};
|
||||
...
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user