diff options
Diffstat (limited to 'drivers/eisa/eisa-bus.c')
-rw-r--r-- | drivers/eisa/eisa-bus.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/eisa/eisa-bus.c b/drivers/eisa/eisa-bus.c index 4196137e66de..6078e2f58817 100644 --- a/drivers/eisa/eisa-bus.c +++ b/drivers/eisa/eisa-bus.c | |||
@@ -135,13 +135,8 @@ struct bus_type eisa_bus_type = { | |||
135 | 135 | ||
136 | int eisa_driver_register (struct eisa_driver *edrv) | 136 | int eisa_driver_register (struct eisa_driver *edrv) |
137 | { | 137 | { |
138 | int r; | ||
139 | |||
140 | edrv->driver.bus = &eisa_bus_type; | 138 | edrv->driver.bus = &eisa_bus_type; |
141 | if ((r = driver_register (&edrv->driver)) < 0) | 139 | return driver_register (&edrv->driver); |
142 | return r; | ||
143 | |||
144 | return 0; | ||
145 | } | 140 | } |
146 | 141 | ||
147 | void eisa_driver_unregister (struct eisa_driver *edrv) | 142 | void eisa_driver_unregister (struct eisa_driver *edrv) |