diff options
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r-- | drivers/base/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index d56a05f94f67..bdd59e8358f0 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -499,7 +499,7 @@ int __init_or_module platform_driver_probe(struct platform_driver *drv, | |||
499 | */ | 499 | */ |
500 | spin_lock(&platform_bus_type.p->klist_drivers.k_lock); | 500 | spin_lock(&platform_bus_type.p->klist_drivers.k_lock); |
501 | drv->probe = NULL; | 501 | drv->probe = NULL; |
502 | if (code == 0 && list_empty(&drv->driver.klist_devices.k_list)) | 502 | if (code == 0 && list_empty(&drv->driver.p->klist_devices.k_list)) |
503 | retval = -ENODEV; | 503 | retval = -ENODEV; |
504 | drv->driver.probe = platform_drv_probe_fail; | 504 | drv->driver.probe = platform_drv_probe_fail; |
505 | spin_unlock(&platform_bus_type.p->klist_drivers.k_lock); | 505 | spin_unlock(&platform_bus_type.p->klist_drivers.k_lock); |