summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorThomas Renninger <trenn@suse.de>2011-11-17 23:37:00 +0100
committerLen Brown <len.brown@intel.com>2012-01-17 06:25:34 -0500
commit3333ea7804201918aa241641cf8493a62b8ad527 (patch)
tree2ec3afcca9cb15396e0a7260b70fc28a711c0b1d /drivers/acpi
parentd640113fe80e45ebd4a5b420b220d3f6bf37f682 (diff)
downloadop-kernel-dev-3333ea7804201918aa241641cf8493a62b8ad527.zip
op-kernel-dev-3333ea7804201918aa241641cf8493a62b8ad527.tar.gz
ACPI processor: Fix error path, also remove sysdev link
Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/processor_driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
index 9d7bc9f..90719d1 100644
--- a/drivers/acpi/processor_driver.c
+++ b/drivers/acpi/processor_driver.c
@@ -539,6 +539,7 @@ err_thermal_unregister:
thermal_cooling_device_unregister(pr->cdev);
err_power_exit:
acpi_processor_power_exit(pr, device);
+ sysfs_remove_link(&device->dev.kobj, "sysdev");
err_free_cpumask:
free_cpumask_var(pr->throttling.shared_cpu_map);
OpenPOWER on IntegriCloud