hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/sparc/kernel/auxio_64.c
....@@ -87,7 +87,6 @@
8787 __auxio_sbus_set_lte(on);
8888 break;
8989 case AUXIO_TYPE_EBUS:
90
- /* FALL-THROUGH */
9190 default:
9291 break;
9392 }
....@@ -108,23 +107,22 @@
108107 struct device_node *dp = dev->dev.of_node;
109108 unsigned long size;
110109
111
- if (!strcmp(dp->parent->name, "ebus")) {
110
+ if (of_node_name_eq(dp->parent, "ebus")) {
112111 auxio_devtype = AUXIO_TYPE_EBUS;
113112 size = sizeof(u32);
114
- } else if (!strcmp(dp->parent->name, "sbus")) {
113
+ } else if (of_node_name_eq(dp->parent, "sbus")) {
115114 auxio_devtype = AUXIO_TYPE_SBUS;
116115 size = 1;
117116 } else {
118
- printk("auxio: Unknown parent bus type [%s]\n",
119
- dp->parent->name);
117
+ printk("auxio: Unknown parent bus type [%pOFn]\n",
118
+ dp->parent);
120119 return -ENODEV;
121120 }
122121 auxio_register = of_ioremap(&dev->resource[0], 0, size, "auxio");
123122 if (!auxio_register)
124123 return -ENODEV;
125124
126
- printk(KERN_INFO "AUXIO: Found device at %s\n",
127
- dp->full_name);
125
+ printk(KERN_INFO "AUXIO: Found device at %pOF\n", dp);
128126
129127 if (auxio_devtype == AUXIO_TYPE_EBUS)
130128 auxio_set_led(AUXIO_LED_ON);