diff options
Diffstat (limited to 'drivers/base/dd.c')
-rw-r--r-- | drivers/base/dd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 319a73be4180..b5f43c3e44fa 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c | |||
@@ -162,6 +162,8 @@ int driver_probe_device(struct device_driver * drv, struct device * dev) | |||
162 | struct task_struct *probe_task; | 162 | struct task_struct *probe_task; |
163 | int ret = 0; | 163 | int ret = 0; |
164 | 164 | ||
165 | if (!device_is_registered(dev)) | ||
166 | return -ENODEV; | ||
165 | if (drv->bus->match && !drv->bus->match(dev, drv)) | 167 | if (drv->bus->match && !drv->bus->match(dev, drv)) |
166 | goto done; | 168 | goto done; |
167 | 169 | ||