projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hwspinlock: Use device_match_of_node()
[linux-2.6-microblaze.git]
/
drivers
/
hwspinlock
/
hwspinlock_core.c
diff --git
a/drivers/hwspinlock/hwspinlock_core.c
b/drivers/hwspinlock/hwspinlock_core.c
index
fd5f5c5
..
22b8f2a
100644
(file)
--- 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;
}