Skip to content

Commit 1ea252e

Browse files
zhaoxiaorafaeljw
authored andcommitted
thermal: da9062-thermal: Drop redundant error message
Since platform_get_irq() already prints an error message on failure, it is not necessary to print another one for the same purpose. Signed-off-by: zhaoxiao <zhaoxiao@uniontech.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent b1a2c4e commit 1ea252e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/thermal/da9062-thermal.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,9 @@ static int da9062_thermal_probe(struct platform_device *pdev)
248248
jiffies_to_msecs(thermal->zone->passive_delay_jiffies));
249249

250250
ret = platform_get_irq_byname(pdev, "THERMAL");
251-
if (ret < 0) {
252-
dev_err(&pdev->dev, "Failed to get platform IRQ.\n");
251+
if (ret < 0)
253252
goto err_zone;
254-
}
253+
255254
thermal->irq = ret;
256255

257256
ret = request_threaded_irq(thermal->irq, NULL,

0 commit comments

Comments
 (0)