diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2024-02-28 17:05:15 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-02-29 09:10:38 +0100 |
commit | 5ec36ba8cad4afbe225548f6e843d28dffc6136a (patch) | |
tree | c55357d491460511b57e71eadb519d29eb5078ba /drivers/spi/spi.c | |
parent | 15a18149a615dbfae6559c9e0f6ffcbc44922b57 (diff) | |
download | barebox-5ec36ba8cad4afbe225548f6e843d28dffc6136a.tar.gz barebox-5ec36ba8cad4afbe225548f6e843d28dffc6136a.tar.xz |
treewide: remove bus probe functions that just call driver probe
Now that the driver core will call the driver probe function if there is
no bus probe function, remove all bus probe functions that do what the
core can do instead.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20240228160518.1589193-3-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r-- | drivers/spi/spi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index fd9c8da171..c627d88954 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -412,15 +412,9 @@ int spi_write_then_read(struct spi_device *spi, } EXPORT_SYMBOL(spi_write_then_read); -static int spi_probe(struct device *dev) -{ - return dev->driver->probe(dev); -} - struct bus_type spi_bus = { .name = "spi", .match = device_match_of_modalias, - .probe = spi_probe, }; static int spi_bus_init(void) |