diff options
Diffstat (limited to 'drivers/base/driver.c')
-rw-r--r-- | drivers/base/driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c index eb11475293ed..1c9770dfb801 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c | |||
@@ -185,7 +185,7 @@ void driver_unregister(struct device_driver * drv) | |||
185 | */ | 185 | */ |
186 | struct device_driver *driver_find(const char *name, struct bus_type *bus) | 186 | struct device_driver *driver_find(const char *name, struct bus_type *bus) |
187 | { | 187 | { |
188 | struct kobject *k = kset_find_obj(&bus->drivers, name); | 188 | struct kobject *k = kset_find_obj(bus->drivers_kset, name); |
189 | if (k) | 189 | if (k) |
190 | return to_drv(k); | 190 | return to_drv(k); |
191 | return NULL; | 191 | return NULL; |