mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 16:53:58 -05:00
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>
This commit is contained in:
parent
b1a2c4ee8b
commit
1ea252ef29
1 changed files with 2 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue