diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-14 13:42:40 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-14 13:42:40 -0500 |
| commit | 3e2b32b69308e974cd1167beaf266d3c716e4734 (patch) | |
| tree | 0f1b24dcb7b066a6322d33235b95655d885695ac /drivers/base/driver.c | |
| parent | 3824ba7df91745da6ebac703c87c3b801c34fdd0 (diff) | |
| parent | 9c08a938ce5a3e1c9d5f764dc6ae844cb1af76ff (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
Diffstat (limited to 'drivers/base/driver.c')
| -rw-r--r-- | drivers/base/driver.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 161f3a390d90..b400314e1c62 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c | |||
| @@ -171,6 +171,11 @@ static void klist_devices_put(struct klist_node *n) | |||
| 171 | */ | 171 | */ |
| 172 | int driver_register(struct device_driver * drv) | 172 | int driver_register(struct device_driver * drv) |
| 173 | { | 173 | { |
| 174 | if ((drv->bus->probe && drv->probe) || | ||
| 175 | (drv->bus->remove && drv->remove) || | ||
| 176 | (drv->bus->shutdown && drv->shutdown)) { | ||
| 177 | printk(KERN_WARNING "Driver '%s' needs updating - please use bus_type methods\n", drv->name); | ||
| 178 | } | ||
| 174 | klist_init(&drv->klist_devices, klist_devices_get, klist_devices_put); | 179 | klist_init(&drv->klist_devices, klist_devices_get, klist_devices_put); |
| 175 | init_completion(&drv->unloaded); | 180 | init_completion(&drv->unloaded); |
| 176 | return bus_add_driver(drv); | 181 | return bus_add_driver(drv); |
