[PATCH v2 09/15] thermal/drivers/maxim: remove redundant msg
Yangtao Li
frank.li at vivo.com
Tue Jun 27 03:12:09 PDT 2023
The upper devm_request_threaded_irq() function prints directly
error message.
Signed-off-by: Yangtao Li <frank.li at vivo.com>
---
drivers/thermal/max77620_thermal.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/thermal/max77620_thermal.c b/drivers/thermal/max77620_thermal.c
index 61c7622d9945..73c251caa62d 100644
--- a/drivers/thermal/max77620_thermal.c
+++ b/drivers/thermal/max77620_thermal.c
@@ -125,19 +125,15 @@ static int max77620_thermal_probe(struct platform_device *pdev)
max77620_thermal_irq,
IRQF_ONESHOT | IRQF_SHARED,
dev_name(&pdev->dev), mtherm);
- if (ret < 0) {
- dev_err(&pdev->dev, "Failed to request irq1: %d\n", ret);
+ if (ret < 0)
return ret;
- }
ret = devm_request_threaded_irq(&pdev->dev, mtherm->irq_tjalarm2, NULL,
max77620_thermal_irq,
IRQF_ONESHOT | IRQF_SHARED,
dev_name(&pdev->dev), mtherm);
- if (ret < 0) {
- dev_err(&pdev->dev, "Failed to request irq2: %d\n", ret);
+ if (ret < 0)
return ret;
- }
platform_set_drvdata(pdev, mtherm);
--
2.39.0
More information about the linux-arm-kernel
mailing list