diff options
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index bc9f35c81691..b224bb43ff63 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -424,6 +424,10 @@ int device_add(struct device *dev) | |||
424 | if ((error = kobject_add(&dev->kobj))) | 424 | if ((error = kobject_add(&dev->kobj))) |
425 | goto Error; | 425 | goto Error; |
426 | 426 | ||
427 | /* notify platform of device entry */ | ||
428 | if (platform_notify) | ||
429 | platform_notify(dev); | ||
430 | |||
427 | dev->uevent_attr.attr.name = "uevent"; | 431 | dev->uevent_attr.attr.name = "uevent"; |
428 | dev->uevent_attr.attr.mode = S_IWUSR; | 432 | dev->uevent_attr.attr.mode = S_IWUSR; |
429 | if (dev->driver) | 433 | if (dev->driver) |
@@ -488,10 +492,6 @@ int device_add(struct device *dev) | |||
488 | class_intf->add_dev(dev, class_intf); | 492 | class_intf->add_dev(dev, class_intf); |
489 | up(&dev->class->sem); | 493 | up(&dev->class->sem); |
490 | } | 494 | } |
491 | |||
492 | /* notify platform of device entry */ | ||
493 | if (platform_notify) | ||
494 | platform_notify(dev); | ||
495 | Done: | 495 | Done: |
496 | kfree(class_name); | 496 | kfree(class_name); |
497 | put_device(dev); | 497 | put_device(dev); |