diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-03-13 19:08:48 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-03-20 15:39:14 +0100 |
commit | 7f400a1dc29f3ed6cb0fe0e58f706b6933f72625 (patch) | |
tree | 6e966220818eae189d06b81f28e7399380d1a179 /drivers/nubus | |
parent | e36a82bebbf7da814530d5a179bef9df5934b717 (diff) |
nubus: Drop noop match function
nubus_bus_match() returned 1 unconditionally. This is equivalent to
no match function at all. (See driver_match_device() which does:
return drv->bus->match ? drv->bus->match(dev, drv) : 1;
.)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Finn Thain <fthain@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20230313180848.2770504-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/nubus')
-rw-r--r-- | drivers/nubus/bus.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/nubus/bus.c b/drivers/nubus/bus.c index 17fad660032c..72921e4f35f6 100644 --- a/drivers/nubus/bus.c +++ b/drivers/nubus/bus.c @@ -14,11 +14,6 @@ #define to_nubus_board(d) container_of(d, struct nubus_board, dev) #define to_nubus_driver(d) container_of(d, struct nubus_driver, driver) -static int nubus_bus_match(struct device *dev, struct device_driver *driver) -{ - return 1; -} - static int nubus_device_probe(struct device *dev) { struct nubus_driver *ndrv = to_nubus_driver(dev->driver); @@ -39,7 +34,6 @@ static void nubus_device_remove(struct device *dev) struct bus_type nubus_bus_type = { .name = "nubus", - .match = nubus_bus_match, .probe = nubus_device_probe, .remove = nubus_device_remove, }; |