Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fsi: Assign driver's bus in fsi_driver_register()

Instead of letting each driver assign the bus, do it once in the fsi
driver register function.

Simplify the fsi drivers that are living in drivers/fsi accordingly.

Once all fsi drivers dropped assigning the bus, fsi_bus_type can be made
a static variable.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Acked-by: Eddie James <eajames@linux.ibm.com>
Link: https://patch.msgid.link/54804c2cd4d84a6b5fb679831122b6acdd36b168.1765279318.git.u.kleine-koenig@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Uwe Kleine-König and committed by
Greg Kroah-Hartman
03db6a80 94c37d42

+2 -4
+2
drivers/fsi/fsi-core.c
··· 1394 1394 if (!fsi_drv->id_table) 1395 1395 return -EINVAL; 1396 1396 1397 + fsi_drv->drv.bus = &fsi_bus_type; 1398 + 1397 1399 return driver_register(&fsi_drv->drv); 1398 1400 } 1399 1401 EXPORT_SYMBOL_GPL(fsi_driver_register);
-1
drivers/fsi/fsi-master-hub.c
··· 288 288 .id_table = hub_master_ids, 289 289 .drv = { 290 290 .name = "fsi-master-hub", 291 - .bus = &fsi_bus_type, 292 291 .probe = hub_master_probe, 293 292 .remove = hub_master_remove, 294 293 }
-1
drivers/fsi/fsi-sbefifo.c
··· 1133 1133 .id_table = sbefifo_ids, 1134 1134 .drv = { 1135 1135 .name = DEVICE_NAME, 1136 - .bus = &fsi_bus_type, 1137 1136 .probe = sbefifo_probe, 1138 1137 .remove = sbefifo_remove, 1139 1138 }
-1
drivers/fsi/fsi-scom.c
··· 606 606 .id_table = scom_ids, 607 607 .drv = { 608 608 .name = "scom", 609 - .bus = &fsi_bus_type, 610 609 .of_match_table = scom_of_ids, 611 610 .probe = scom_probe, 612 611 .remove = scom_remove,
-1
drivers/fsi/i2cr-scom.c
··· 140 140 .id_table = i2cr_scom_ids, 141 141 .drv = { 142 142 .name = "i2cr_scom", 143 - .bus = &fsi_bus_type, 144 143 .of_match_table = i2cr_scom_of_ids, 145 144 .probe = i2cr_scom_probe, 146 145 .remove = i2cr_scom_remove,