summaryrefslogtreecommitdiffstats
path: root/drivers/hwspinlock
diff options
context:
space:
mode:
authorye xingchen <ye.xingchen@zte.com.cn>2022-11-25 08:44:36 +0100
committerBjorn Andersson <andersson@kernel.org>2022-12-28 17:39:20 +0100
commitec5c05e5ac8bcb4a6bcd92970e15494a85400d34 (patch)
treee369ad8a5a3492420f5a305fe2a399dbd03f9dea /drivers/hwspinlock
parentLinux 6.2-rc1 (diff)
downloadlinux-ec5c05e5ac8bcb4a6bcd92970e15494a85400d34.tar.xz
linux-ec5c05e5ac8bcb4a6bcd92970e15494a85400d34.zip
hwspinlock: Use device_match_of_node()
Replace the open-code with device_match_of_node(). Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/202211251544369078587@zte.com.cn
Diffstat (limited to 'drivers/hwspinlock')
-rw-r--r--drivers/hwspinlock/hwspinlock_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwspinlock/hwspinlock_core.c b/drivers/hwspinlock/hwspinlock_core.c
index fd5f5c5a5244..22b8f2a70b3b 100644
--- a/drivers/hwspinlock/hwspinlock_core.c
+++ b/drivers/hwspinlock/hwspinlock_core.c
@@ -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;
}