forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/powerpc/platforms/powermac/udbg_adb.c
....@@ -194,7 +194,7 @@
194194 */
195195 for_each_node_by_name(np, "keyboard") {
196196 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");
198198 of_node_put(parent);
199199 if (found)
200200 break;