diff options
Diffstat (limited to 'drivers/thermal/int340x_thermal/int3403_thermal.c')
-rw-r--r-- | drivers/thermal/int340x_thermal/int3403_thermal.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/thermal/int340x_thermal/int3403_thermal.c b/drivers/thermal/int340x_thermal/int3403_thermal.c index 6e9fb62eb817..1bfa6a69e77a 100644 --- a/drivers/thermal/int340x_thermal/int3403_thermal.c +++ b/drivers/thermal/int340x_thermal/int3403_thermal.c | |||
@@ -293,8 +293,7 @@ static int int3403_sensor_add(struct int3403_priv *priv) | |||
293 | return 0; | 293 | return 0; |
294 | 294 | ||
295 | err_free_obj: | 295 | err_free_obj: |
296 | if (obj->tzone) | 296 | thermal_zone_device_unregister(obj->tzone); |
297 | thermal_zone_device_unregister(obj->tzone); | ||
298 | return result; | 297 | return result; |
299 | } | 298 | } |
300 | 299 | ||
@@ -471,7 +470,6 @@ static struct platform_driver int3403_driver = { | |||
471 | .remove = int3403_remove, | 470 | .remove = int3403_remove, |
472 | .driver = { | 471 | .driver = { |
473 | .name = "int3403 thermal", | 472 | .name = "int3403 thermal", |
474 | .owner = THIS_MODULE, | ||
475 | .acpi_match_table = int3403_device_ids, | 473 | .acpi_match_table = int3403_device_ids, |
476 | }, | 474 | }, |
477 | }; | 475 | }; |