diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-09-26 00:23:12 +0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-09-30 21:58:18 +0400 |
commit | cae712724161c27f5e8c39bb3946449e1c179881 (patch) | |
tree | ab40a09241d84026f5c159167d9cb5eb820d28f3 /drivers/acpi/sysfs.c | |
parent | 9b5b06740194c8fa1cddb3aa5fe69fd6f5199bc4 (diff) | |
download | linux-cae712724161c27f5e8c39bb3946449e1c179881.tar.xz |
ACPI / hotplug: Don't set kobject parent pointer explicitly
kobject_add() sets the parent pointer, so we don't need to do it
explicitly.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/sysfs.c')
-rw-r--r-- | drivers/acpi/sysfs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index ea685835b834..75432819579c 100644 --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c @@ -764,7 +764,6 @@ void acpi_sysfs_add_hotplug_profile(struct acpi_hotplug_profile *hotplug, kobject_init(&hotplug->kobj, &acpi_hotplug_profile_ktype); - hotplug->kobj.parent = hotplug_kobj; error = kobject_add(&hotplug->kobj, hotplug_kobj, "%s", name); if (error) goto err_out; |