diff options
Diffstat (limited to 'drivers/base/class.c')
-rw-r--r-- | drivers/base/class.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c index 624b3316e938..8e3cba224384 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c | |||
@@ -586,8 +586,8 @@ int class_device_add(struct class_device *class_dev) | |||
586 | else | 586 | else |
587 | class_dev->kobj.parent = &parent_class->subsys.kobj; | 587 | class_dev->kobj.parent = &parent_class->subsys.kobj; |
588 | 588 | ||
589 | error = kobject_add_ng(&class_dev->kobj, class_dev->kobj.parent, | 589 | error = kobject_add(&class_dev->kobj, class_dev->kobj.parent, |
590 | "%s", class_dev->class_id); | 590 | "%s", class_dev->class_id); |
591 | if (error) | 591 | if (error) |
592 | goto out2; | 592 | goto out2; |
593 | 593 | ||