aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/dd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 1b1cbb571d38..9a1e9704d782 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -283,6 +283,7 @@ probe_failed:
283 devres_release_all(dev); 283 devres_release_all(dev);
284 driver_sysfs_remove(dev); 284 driver_sysfs_remove(dev);
285 dev->driver = NULL; 285 dev->driver = NULL;
286 dev_set_drvdata(dev, NULL);
286 287
287 if (ret == -EPROBE_DEFER) { 288 if (ret == -EPROBE_DEFER) {
288 /* Driver requested deferred probing */ 289 /* Driver requested deferred probing */
@@ -487,6 +488,7 @@ static void __device_release_driver(struct device *dev)
487 drv->remove(dev); 488 drv->remove(dev);
488 devres_release_all(dev); 489 devres_release_all(dev);
489 dev->driver = NULL; 490 dev->driver = NULL;
491 dev_set_drvdata(dev, NULL);
490 klist_remove(&dev->p->knode_driver); 492 klist_remove(&dev->p->knode_driver);
491 if (dev->bus) 493 if (dev->bus)
492 blocking_notifier_call_chain(&dev->bus->p->bus_notifier, 494 blocking_notifier_call_chain(&dev->bus->p->bus_notifier,