提交 0716f9fd 编写于 作者: M Markus Elfring 提交者: Chanwoo Choi

PM / devfreq: tegra30: Delete an error message in tegra_devfreq_probe()

The function “platform_get_irq” can log an error already.
Thus omit a redundant message for the exception handling in the
calling function.

This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: NDmitry Osipenko <digetx@gmail.com>
Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
上级 d2216ba3
...@@ -807,10 +807,9 @@ static int tegra_devfreq_probe(struct platform_device *pdev) ...@@ -807,10 +807,9 @@ static int tegra_devfreq_probe(struct platform_device *pdev)
} }
err = platform_get_irq(pdev, 0); err = platform_get_irq(pdev, 0);
if (err < 0) { if (err < 0)
dev_err(&pdev->dev, "Failed to get IRQ: %d\n", err);
return err; return err;
}
tegra->irq = err; tegra->irq = err;
irq_set_status_flags(tegra->irq, IRQ_NOAUTOEN); irq_set_status_flags(tegra->irq, IRQ_NOAUTOEN);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册