diff options
author | zhaoxiao <zhaoxiao@uniontech.com> | 2022-08-12 09:39:26 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-08-31 21:58:25 +0300 |
commit | 1ea252ef299bbce16cc40d52d0635346fdc4b7ea (patch) | |
tree | af67de24c80611f110272888d91c153adc5d3c41 /drivers/thermal/da9062-thermal.c | |
parent | b1a2c4ee8be1df1931599e3214402ed9d6f97f8e (diff) | |
download | linux-1ea252ef299bbce16cc40d52d0635346fdc4b7ea.tar.xz |
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>
Diffstat (limited to 'drivers/thermal/da9062-thermal.c')
-rw-r--r-- | drivers/thermal/da9062-thermal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/thermal/da9062-thermal.c b/drivers/thermal/da9062-thermal.c index 180edec34e07..7dcfde7a9f2c 100644 --- a/drivers/thermal/da9062-thermal.c +++ b/drivers/thermal/da9062-thermal.c @@ -248,10 +248,9 @@ static int da9062_thermal_probe(struct platform_device *pdev) jiffies_to_msecs(thermal->zone->passive_delay_jiffies)); ret = platform_get_irq_byname(pdev, "THERMAL"); - if (ret < 0) { - dev_err(&pdev->dev, "Failed to get platform IRQ.\n"); + if (ret < 0) goto err_zone; - } + thermal->irq = ret; ret = request_threaded_irq(thermal->irq, NULL, |