diff options
Diffstat (limited to 'drivers/base/driver.c')
-rw-r--r-- | drivers/base/driver.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 562600dd540a..1214cbd17d86 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c | |||
@@ -142,20 +142,6 @@ void put_driver(struct device_driver * drv) | |||
142 | kobject_put(&drv->kobj); | 142 | kobject_put(&drv->kobj); |
143 | } | 143 | } |
144 | 144 | ||
145 | static void klist_devices_get(struct klist_node *n) | ||
146 | { | ||
147 | struct device *dev = container_of(n, struct device, knode_driver); | ||
148 | |||
149 | get_device(dev); | ||
150 | } | ||
151 | |||
152 | static void klist_devices_put(struct klist_node *n) | ||
153 | { | ||
154 | struct device *dev = container_of(n, struct device, knode_driver); | ||
155 | |||
156 | put_device(dev); | ||
157 | } | ||
158 | |||
159 | /** | 145 | /** |
160 | * driver_register - register driver with bus | 146 | * driver_register - register driver with bus |
161 | * @drv: driver to register | 147 | * @drv: driver to register |
@@ -175,7 +161,7 @@ int driver_register(struct device_driver * drv) | |||
175 | (drv->bus->shutdown && drv->shutdown)) { | 161 | (drv->bus->shutdown && drv->shutdown)) { |
176 | printk(KERN_WARNING "Driver '%s' needs updating - please use bus_type methods\n", drv->name); | 162 | printk(KERN_WARNING "Driver '%s' needs updating - please use bus_type methods\n", drv->name); |
177 | } | 163 | } |
178 | klist_init(&drv->klist_devices, klist_devices_get, klist_devices_put); | 164 | klist_init(&drv->klist_devices, NULL, NULL); |
179 | init_completion(&drv->unloaded); | 165 | init_completion(&drv->unloaded); |
180 | return bus_add_driver(drv); | 166 | return bus_add_driver(drv); |
181 | } | 167 | } |