Linux M68K Architecture development
 help / color / mirror / Atom feed
* [PATCH v1] nubus: Remove redunant driver match function
@ 2023-03-19  4:08 Lizhe
  2023-03-19  8:34 ` Finn Thain
  0 siblings, 1 reply; 6+ messages in thread
From: Lizhe @ 2023-03-19  4:08 UTC (permalink / raw)
  To: fthain; +Cc: linux-m68k, linux-kernel, Lizhe

If there is no driver match function, the driver core assumes that each
candidate pair (driver, device)matches, see driver_match_device()

Signed-off-by: Lizhe <sensor1010@163.com>
---
 drivers/nubus/bus.c | 6 ------
 1 file changed, 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,
 };
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-03-20  9:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-19  4:08 [PATCH v1] nubus: Remove redunant driver match function Lizhe
2023-03-19  8:34 ` Finn Thain
     [not found]   ` <4cd5783e.1665.186f9882231.Coremail.sensor1010@163.com>
2023-03-19 14:20     ` Uwe Kleine-König
2023-03-20  3:49       ` Finn Thain
2023-03-20  9:40         ` Uwe Kleine-König
     [not found]   ` <74decde9.155d.186f9737c21.Coremail.sensor1010@163.com>
2023-03-20  3:48     ` Finn Thain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox