Skip to content

Commit 75a080c

Browse files
committed
powerpc: chrp: Use of_node_is_type to access device_type
Commit 8ce5f84 ("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: 8ce5f84 ("of: Remove struct device_node.type pointer") Reported-by: kbuild test robot <lkp@intel.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: linuxppc-dev@lists.ozlabs.org Acked-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 3705add commit 75a080c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/powerpc/platforms/chrp/setup.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,7 @@ static void __init chrp_init_IRQ(void)
538538
/* see if there is a keyboard in the device tree
539539
with a parent of type "adb" */
540540
for_each_node_by_name(kbd, "keyboard")
541-
if (kbd->parent && kbd->parent->type
542-
&& strcmp(kbd->parent->type, "adb") == 0)
541+
if (of_node_is_type(kbd->parent, "adb"))
543542
break;
544543
of_node_put(kbd);
545544
if (kbd)

0 commit comments

Comments
 (0)