diff options
| -rw-r--r-- | drivers/acpi/processor_driver.c | 3 | ||||
| -rw-r--r-- | drivers/cpufreq/scpi-cpufreq.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index f4e02ae93f58..11154a330f07 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c | |||
| @@ -200,7 +200,8 @@ static int acpi_pss_perf_init(struct acpi_processor *pr, | |||
| 200 | goto err_remove_sysfs_thermal; | 200 | goto err_remove_sysfs_thermal; |
| 201 | } | 201 | } |
| 202 | 202 | ||
| 203 | sysfs_remove_link(&pr->cdev->device.kobj, "device"); | 203 | return 0; |
| 204 | |||
| 204 | err_remove_sysfs_thermal: | 205 | err_remove_sysfs_thermal: |
| 205 | sysfs_remove_link(&device->dev.kobj, "thermal_cooling"); | 206 | sysfs_remove_link(&device->dev.kobj, "thermal_cooling"); |
| 206 | err_thermal_unregister: | 207 | err_thermal_unregister: |
diff --git a/drivers/cpufreq/scpi-cpufreq.c b/drivers/cpufreq/scpi-cpufreq.c index 2c3b16fd3a01..de5e89b2eaaa 100644 --- a/drivers/cpufreq/scpi-cpufreq.c +++ b/drivers/cpufreq/scpi-cpufreq.c | |||
| @@ -31,7 +31,7 @@ static struct scpi_ops *scpi_ops; | |||
| 31 | 31 | ||
| 32 | static struct scpi_dvfs_info *scpi_get_dvfs_info(struct device *cpu_dev) | 32 | static struct scpi_dvfs_info *scpi_get_dvfs_info(struct device *cpu_dev) |
| 33 | { | 33 | { |
| 34 | u8 domain = topology_physical_package_id(cpu_dev->id); | 34 | int domain = topology_physical_package_id(cpu_dev->id); |
| 35 | 35 | ||
| 36 | if (domain < 0) | 36 | if (domain < 0) |
| 37 | return ERR_PTR(-EINVAL); | 37 | return ERR_PTR(-EINVAL); |
