mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
rtc: remove unnecessary error message after platform_get_irq
The function “platform_get_irq” can log an error already. Thus omit redundant messages for the exception handling in the calling functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Acked-by: Vladimir Zapolskiy <vz@mleia.com> Link: https://lore.kernel.org/r/04116352-b464-041c-1939-96440133aa6f@web.de Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
committed by
Alexandre Belloni
parent
8f3d9f3542
commit
944ed452eb
@@ -268,10 +268,8 @@ static int ftm_rtc_probe(struct platform_device *pdev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
irq = platform_get_irq(pdev, 0);
|
irq = platform_get_irq(pdev, 0);
|
||||||
if (irq < 0) {
|
if (irq < 0)
|
||||||
dev_err(&pdev->dev, "can't get irq number\n");
|
|
||||||
return irq;
|
return irq;
|
||||||
}
|
|
||||||
|
|
||||||
ret = devm_request_irq(&pdev->dev, irq, ftm_rtc_alarm_interrupt,
|
ret = devm_request_irq(&pdev->dev, irq, ftm_rtc_alarm_interrupt,
|
||||||
IRQF_NO_SUSPEND, dev_name(&pdev->dev), rtc);
|
IRQF_NO_SUSPEND, dev_name(&pdev->dev), rtc);
|
||||||
|
@@ -205,10 +205,8 @@ static int lpc24xx_rtc_probe(struct platform_device *pdev)
|
|||||||
return PTR_ERR(rtc->rtc_base);
|
return PTR_ERR(rtc->rtc_base);
|
||||||
|
|
||||||
irq = platform_get_irq(pdev, 0);
|
irq = platform_get_irq(pdev, 0);
|
||||||
if (irq < 0) {
|
if (irq < 0)
|
||||||
dev_warn(&pdev->dev, "can't get interrupt resource\n");
|
|
||||||
return irq;
|
return irq;
|
||||||
}
|
|
||||||
|
|
||||||
rtc->clk_rtc = devm_clk_get(&pdev->dev, "rtc");
|
rtc->clk_rtc = devm_clk_get(&pdev->dev, "rtc");
|
||||||
if (IS_ERR(rtc->clk_rtc)) {
|
if (IS_ERR(rtc->clk_rtc)) {
|
||||||
|
@@ -328,10 +328,8 @@ static int mt2712_rtc_probe(struct platform_device *pdev)
|
|||||||
mt2712_rtc_hw_init(mt2712_rtc);
|
mt2712_rtc_hw_init(mt2712_rtc);
|
||||||
|
|
||||||
mt2712_rtc->irq = platform_get_irq(pdev, 0);
|
mt2712_rtc->irq = platform_get_irq(pdev, 0);
|
||||||
if (mt2712_rtc->irq < 0) {
|
if (mt2712_rtc->irq < 0)
|
||||||
dev_err(&pdev->dev, "No IRQ resource\n");
|
|
||||||
return mt2712_rtc->irq;
|
return mt2712_rtc->irq;
|
||||||
}
|
|
||||||
|
|
||||||
platform_set_drvdata(pdev, mt2712_rtc);
|
platform_set_drvdata(pdev, mt2712_rtc);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user