diff options
-rw-r--r-- | drivers/thermal/hisi_thermal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index bd3572c41585..8381696241d6 100644 --- a/drivers/thermal/hisi_thermal.c +++ b/drivers/thermal/hisi_thermal.c | |||
@@ -345,8 +345,7 @@ static int hisi_thermal_probe(struct platform_device *pdev) | |||
345 | } | 345 | } |
346 | 346 | ||
347 | hisi_thermal_enable_bind_irq_sensor(data); | 347 | hisi_thermal_enable_bind_irq_sensor(data); |
348 | irq_get_irqchip_state(data->irq, IRQCHIP_STATE_MASKED, | 348 | data->irq_enabled = true; |
349 | &data->irq_enabled); | ||
350 | 349 | ||
351 | for (i = 0; i < HISI_MAX_SENSORS; ++i) { | 350 | for (i = 0; i < HISI_MAX_SENSORS; ++i) { |
352 | ret = hisi_thermal_register_sensor(pdev, data, | 351 | ret = hisi_thermal_register_sensor(pdev, data, |
@@ -358,6 +357,8 @@ static int hisi_thermal_probe(struct platform_device *pdev) | |||
358 | hisi_thermal_toggle_sensor(&data->sensors[i], true); | 357 | hisi_thermal_toggle_sensor(&data->sensors[i], true); |
359 | } | 358 | } |
360 | 359 | ||
360 | enable_irq(data->irq); | ||
361 | |||
361 | return 0; | 362 | return 0; |
362 | } | 363 | } |
363 | 364 | ||