diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-06 06:24:43 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-25 04:40:11 (GMT) |
commit | 4ff6abff832fbc6cb1d769f6106c841bc2b09f63 (patch) | |
tree | 8458c8e29f53b67912edbe2424e43f95556832ce /drivers/base/core.c | |
parent | 3f9e3ee9dc3605e5c593b5d708494571fb0d3970 (diff) | |
download | linux-fsl-qoriq-4ff6abff832fbc6cb1d769f6106c841bc2b09f63.tar.xz |
kobject: get rid of kobject_add_dir
kobject_create_and_add is the same as kobject_add_dir, so drop
kobject_add_dir.
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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 c8f2ac0..992eba3 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -562,7 +562,8 @@ static struct kobject *virtual_device_parent(struct device *dev) static struct kobject *virtual_dir = NULL; if (!virtual_dir) - virtual_dir = kobject_add_dir(&devices_subsys.kobj, "virtual"); + virtual_dir = kobject_create_and_add("virtual", + &devices_subsys.kobj); return virtual_dir; } |