Commit 9b0b0dd8 authored by Linus Torvalds's avatar Linus Torvalds

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()
parents 498a1cf9 95e158ec
...@@ -26,11 +26,15 @@ properties: ...@@ -26,11 +26,15 @@ properties:
resets: resets:
maxItems: 1 maxItems: 1
'#hwlock-cells':
const: 1
required: required:
- compatible - compatible
- reg - reg
- clocks - clocks
- resets - resets
- "#hwlock-cells"
additionalProperties: false additionalProperties: false
...@@ -44,5 +48,6 @@ examples: ...@@ -44,5 +48,6 @@ examples:
reg = <0x01c18000 0x1000>; reg = <0x01c18000 0x1000>;
clocks = <&ccu CLK_BUS_SPINLOCK>; clocks = <&ccu CLK_BUS_SPINLOCK>;
resets = <&ccu RST_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) ...@@ -367,7 +367,7 @@ int of_hwspin_lock_get_id(struct device_node *np, int index)
continue; continue;
} }
if (hwlock->bank->dev->of_node == args.np) { if (device_match_of_node(hwlock->bank->dev, args.np)) {
ret = 0; ret = 0;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment