ACPI processor: Fix error path, also remove sysdev link
authorThomas Renninger <trenn@suse.de>
Thu, 17 Nov 2011 22:37:00 +0000 (23:37 +0100)
committerLen Brown <len.brown@intel.com>
Tue, 17 Jan 2012 11:25:34 +0000 (06:25 -0500)
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_driver.c

index 9d7bc9f6b6cc662d52f7ba1802c0d2a7f524a7d1..90719d125e74421e96bcc521766969ee943d12cc 100644 (file)
@@ -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);