diff options
author | Rob Herring <robh@kernel.org> | 2015-02-04 10:43:01 -0600 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-02-04 10:43:01 -0600 |
commit | 962a70d05edac2e2eb53cd077715930083964b9e (patch) | |
tree | f0b3a7bd574b2edfa76ce960e7f8630aea77e257 /drivers/thermal/int340x_thermal/acpi_thermal_rel.c | |
parent | 10638a4ed2b8618f20fabf9ed19df60a68446e90 (diff) | |
parent | 26bc420b59a38e4e6685a73345a0def461136dce (diff) | |
download | linux-962a70d05edac2e2eb53cd077715930083964b9e.tar.gz linux-962a70d05edac2e2eb53cd077715930083964b9e.tar.bz2 linux-962a70d05edac2e2eb53cd077715930083964b9e.zip |
Merge tag 'v3.19-rc6' into HEAD
Linux 3.19-rc6
Diffstat (limited to 'drivers/thermal/int340x_thermal/acpi_thermal_rel.c')
-rw-r--r-- | drivers/thermal/int340x_thermal/acpi_thermal_rel.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/thermal/int340x_thermal/acpi_thermal_rel.c b/drivers/thermal/int340x_thermal/acpi_thermal_rel.c index 231cabc16e16..2c2ec7666eb1 100644 --- a/drivers/thermal/int340x_thermal/acpi_thermal_rel.c +++ b/drivers/thermal/int340x_thermal/acpi_thermal_rel.c @@ -119,15 +119,11 @@ int acpi_parse_trt(acpi_handle handle, int *trt_count, struct trt **trtp, continue; result = acpi_bus_get_device(trt->source, &adev); - if (!result) - acpi_create_platform_device(adev); - else + if (result) pr_warn("Failed to get source ACPI device\n"); result = acpi_bus_get_device(trt->target, &adev); - if (!result) - acpi_create_platform_device(adev); - else + if (result) pr_warn("Failed to get target ACPI device\n"); } @@ -206,16 +202,12 @@ int acpi_parse_art(acpi_handle handle, int *art_count, struct art **artp, if (art->source) { result = acpi_bus_get_device(art->source, &adev); - if (!result) - acpi_create_platform_device(adev); - else + if (result) pr_warn("Failed to get source ACPI device\n"); } if (art->target) { result = acpi_bus_get_device(art->target, &adev); - if (!result) - acpi_create_platform_device(adev); - else + if (result) pr_warn("Failed to get source ACPI device\n"); } } |