forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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;