summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-02-28 17:05:15 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-02-29 09:10:38 +0100
commit5ec36ba8cad4afbe225548f6e843d28dffc6136a (patch)
treec55357d491460511b57e71eadb519d29eb5078ba /drivers/spi/spi.c
parent15a18149a615dbfae6559c9e0f6ffcbc44922b57 (diff)
downloadbarebox-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.c6
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)