diff options
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r-- | drivers/base/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index c8f2ac03d46d..992eba3289bd 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -562,7 +562,8 @@ static struct kobject *virtual_device_parent(struct device *dev) | |||
562 | static struct kobject *virtual_dir = NULL; | 562 | static struct kobject *virtual_dir = NULL; |
563 | 563 | ||
564 | if (!virtual_dir) | 564 | if (!virtual_dir) |
565 | virtual_dir = kobject_add_dir(&devices_subsys.kobj, "virtual"); | 565 | virtual_dir = kobject_create_and_add("virtual", |
566 | &devices_subsys.kobj); | ||
566 | 567 | ||
567 | return virtual_dir; | 568 | return virtual_dir; |
568 | } | 569 | } |