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

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 <>
Cc: Benjamin Herrenschmidt <>
Cc: Paul Mackerras <>
Acked-by: default avatarMichael Ellerman <>
Signed-off-by: default avatarRob Herring <>
parent 3705add0
......@@ -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"))
if (kbd)
Supports Markdown
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