瀏覽代碼

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>
Thomas Renninger 13 年之前
父節點
當前提交
3333ea7804
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/acpi/processor_driver.c

+ 1 - 0
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);