summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-09-25 14:23:12 -0600
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-09-30 19:58:18 +0200
commitcae712724161c27f5e8c39bb3946449e1c179881 (patch)
treeab40a09241d84026f5c159167d9cb5eb820d28f3 /drivers
parent9b5b06740194c8fa1cddb3aa5fe69fd6f5199bc4 (diff)
downloadop-kernel-dev-cae712724161c27f5e8c39bb3946449e1c179881.zip
op-kernel-dev-cae712724161c27f5e8c39bb3946449e1c179881.tar.gz
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')
-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 ea68583..7543281 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;
OpenPOWER on IntegriCloud