summaryrefslogtreecommitdiff
path: root/drivers/thermal/st/st_thermal_memmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/st/st_thermal_memmap.c')
-rw-r--r--drivers/thermal/st/st_thermal_memmap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/thermal/st/st_thermal_memmap.c b/drivers/thermal/st/st_thermal_memmap.c
index a824b78dabf8..a0114452d11f 100644
--- a/drivers/thermal/st/st_thermal_memmap.c
+++ b/drivers/thermal/st/st_thermal_memmap.c
@@ -94,10 +94,8 @@ static int st_mmap_register_enable_irq(struct st_thermal_sensor *sensor)
int ret;
sensor->irq = platform_get_irq(pdev, 0);
- if (sensor->irq < 0) {
- dev_err(dev, "failed to register IRQ\n");
+ if (sensor->irq < 0)
return sensor->irq;
- }
ret = devm_request_threaded_irq(dev, sensor->irq,
NULL, st_mmap_thermal_trip_handler,