Commit 75a080cd authored by Rob Herring's avatar Rob Herring

powerpc: chrp: Use of_node_is_type to access device_type

Commit 8ce5f841 ("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: 8ce5f841 ("of: Remove struct device_node.type pointer")
Reported-by: default avatarkbuild 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: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 3705add0
...@@ -538,8 +538,7 @@ static void __init chrp_init_IRQ(void) ...@@ -538,8 +538,7 @@ static void __init chrp_init_IRQ(void)
/* see if there is a keyboard in the device tree /* see if there is a keyboard in the device tree
with a parent of type "adb" */ with a parent of type "adb" */
for_each_node_by_name(kbd, "keyboard") for_each_node_by_name(kbd, "keyboard")
if (kbd->parent && kbd->parent->type if (of_node_is_type(kbd->parent, "adb"))
&& strcmp(kbd->parent->type, "adb") == 0)
break; break;
of_node_put(kbd); of_node_put(kbd);
if (kbd) if (kbd)
......
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