From c2f6fabb2ed3b869bc254c6cdc73d6beaaaf700f Mon Sep 17 00:00:00 2001 From: Bjorn Helgaas Date: Sat, 25 Mar 2006 03:07:19 -0800 Subject: [PATCH] EISA: tidy-up driver_register() return value Remove the assumption that driver_register() returns the number of devices bound to the driver. In fact, it returns zero for success or a negative error value. Signed-off-by: Bjorn Helgaas Acked-by: Jeff Garzik Acked-by: Marc Zyngier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/eisa/eisa-bus.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'drivers/eisa') diff --git a/drivers/eisa/eisa-bus.c b/drivers/eisa/eisa-bus.c index 4196137e66d..6078e2f5881 100644 --- a/drivers/eisa/eisa-bus.c +++ b/drivers/eisa/eisa-bus.c @@ -135,13 +135,8 @@ struct bus_type eisa_bus_type = { int eisa_driver_register (struct eisa_driver *edrv) { - int r; - edrv->driver.bus = &eisa_bus_type; - if ((r = driver_register (&edrv->driver)) < 0) - return r; - - return 0; + return driver_register (&edrv->driver); } void eisa_driver_unregister (struct eisa_driver *edrv) -- cgit v1.2.3 From 1e0a91ad52c741d09288450674fc7c7f1695200a Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 25 Mar 2006 03:08:19 -0800 Subject: [PATCH] EISA: Ignore generated file drivers/eisa/devlist.h Signed-off-by: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/eisa/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 drivers/eisa/.gitignore (limited to 'drivers/eisa') diff --git a/drivers/eisa/.gitignore b/drivers/eisa/.gitignore new file mode 100644 index 00000000000..4b335c0aedb --- /dev/null +++ b/drivers/eisa/.gitignore @@ -0,0 +1 @@ +devlist.h -- cgit v1.2.3