summaryrefslogtreecommitdiff
path: root/drivers/devfreq/tegra30-devfreq.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2020-04-04 20:34:02 +0200
committerChanwoo Choi <cw00.choi@samsung.com>2020-05-28 18:02:39 +0900
commit0716f9fdb3b65b396531e490a42a4f58a69e1c8f (patch)
treef4054bf14c930ae18a001d21df880b9f1cc88cee /drivers/devfreq/tegra30-devfreq.c
parentd2216ba3ebea8d8864c5094526b8f9302c01021c (diff)
downloadlwn-0716f9fdb3b65b396531e490a42a4f58a69e1c8f.tar.gz
lwn-0716f9fdb3b65b396531e490a42a4f58a69e1c8f.zip
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: Markus Elfring <elfring@users.sourceforge.net> Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/devfreq/tegra30-devfreq.c')
-rw-r--r--drivers/devfreq/tegra30-devfreq.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c
index dfc3ac93c584..e94a27804c20 100644
--- a/drivers/devfreq/tegra30-devfreq.c
+++ b/drivers/devfreq/tegra30-devfreq.c
@@ -807,10 +807,9 @@ static int tegra_devfreq_probe(struct platform_device *pdev)
}
err = platform_get_irq(pdev, 0);
- if (err < 0) {
- dev_err(&pdev->dev, "Failed to get IRQ: %d\n", err);
+ if (err < 0)
return err;
- }
+
tegra->irq = err;
irq_set_status_flags(tegra->irq, IRQ_NOAUTOEN);