diff options
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r-- | drivers/base/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index fb560924148..d56a05f94f6 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -497,12 +497,12 @@ int __init_or_module platform_driver_probe(struct platform_driver *drv, | |||
497 | * if the probe was successful, and make sure any forced probes of | 497 | * if the probe was successful, and make sure any forced probes of |
498 | * new devices fail. | 498 | * new devices fail. |
499 | */ | 499 | */ |
500 | spin_lock(&platform_bus_type.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.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.klist_drivers.k_lock); | 505 | spin_unlock(&platform_bus_type.p->klist_drivers.k_lock); |
506 | 506 | ||
507 | if (code != retval) | 507 | if (code != retval) |
508 | platform_driver_unregister(drv); | 508 | platform_driver_unregister(drv); |