kernel/arch/powerpc/platforms/powermac/udbg_adb.c
.. .. @@ -194,7 +194,7 @@ 194 194 */ 195 195 for_each_node_by_name(np, "keyboard") { 196 196 struct device_node *parent = of_get_parent(np); 197 - int found = (parent && strcmp(parent->type, "adb") == 0);197 + int found = of_node_is_type(parent, "adb");198 198 of_node_put(parent); 199 199 if (found) 200 200 break;