summaryrefslogtreecommitdiff
path: root/drivers/acpi/sysfs.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-09-26 00:23:12 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-09-30 21:58:18 +0400
commitcae712724161c27f5e8c39bb3946449e1c179881 (patch)
treeab40a09241d84026f5c159167d9cb5eb820d28f3 /drivers/acpi/sysfs.c
parent9b5b06740194c8fa1cddb3aa5fe69fd6f5199bc4 (diff)
downloadlinux-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.c1
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;