From: Bjorn Helgaas Date: Wed, 25 Sep 2013 20:23:12 +0000 (-0600) Subject: ACPI / hotplug: Don't set kobject parent pointer explicitly X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cae712724161c27f5e8c39bb3946449e1c179881;p=linux-beck.git 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 Signed-off-by: Rafael J. Wysocki --- 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;