projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3705add
)
powerpc: chrp: Use of_node_is_type to access device_type
author
Rob Herring
<
[email protected]
>
Fri, 18 Jan 2019 14:12:10 +0000
(08:12 -0600)
committer
Rob Herring
<
[email protected]
>
Sat, 19 Jan 2019 16:35:42 +0000
(10:35 -0600)
Commit
8ce5f8415753
("of: Remove struct device_node.type pointer")
removed struct device_node.type pointer, but the conversion to use
of_node_is_type() accessor was missed in chrp_init_IRQ().
Fixes: 8ce5f8415753 ("of: Remove struct device_node.type pointer")
Reported-by: kbuild test robot <
[email protected]
>
Cc: Benjamin Herrenschmidt <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc:
[email protected]
Acked-by: Michael Ellerman <
[email protected]
>
Signed-off-by: Rob Herring <
[email protected]
>
arch/powerpc/platforms/chrp/setup.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/chrp/setup.c
b/arch/powerpc/platforms/chrp/setup.c
index e66644e0fb400c6df684423cc6f2f63fa3095abc..9438fa0fc3552bdf6347dba963ece2b049ca2090 100644
(file)
--- a/
arch/powerpc/platforms/chrp/setup.c
+++ b/
arch/powerpc/platforms/chrp/setup.c
@@
-538,8
+538,7
@@
static void __init chrp_init_IRQ(void)
/* see if there is a keyboard in the device tree
with a parent of type "adb" */
for_each_node_by_name(kbd, "keyboard")
- if (kbd->parent && kbd->parent->type
- && strcmp(kbd->parent->type, "adb") == 0)
+ if (of_node_is_type(kbd->parent, "adb"))
break;
of_node_put(kbd);
if (kbd)