From: Tan Zhongjun Date: Thu, 10 Jun 2021 06:39:55 +0000 (+0800) Subject: drm/tegra: Remove superfluous error messages around platform_get_irq() X-Git-Tag: v5.14-rc1~114^2~5^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d12919bb5da571ec50588ef97683d37e36dc2de5;p=thirdparty%2Fkernel%2Flinux.git drm/tegra: Remove superfluous error messages around platform_get_irq() The platform_get_irq() prints error message telling that interrupt is missing,hence there is no need to duplicated that message in the drivers. Signed-off-by: Tan Zhongjun Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index ea56c6ec25e4e..0cbaececc18ac 100644 --- a/drivers/gpu/drm/tegra/dpaux.c +++ b/drivers/gpu/drm/tegra/dpaux.c @@ -467,10 +467,8 @@ static int tegra_dpaux_probe(struct platform_device *pdev) return PTR_ERR(dpaux->regs); dpaux->irq = platform_get_irq(pdev, 0); - if (dpaux->irq < 0) { - dev_err(&pdev->dev, "failed to get IRQ\n"); + if (dpaux->irq < 0) return -ENXIO; - } if (!pdev->dev.pm_domain) { dpaux->rst = devm_reset_control_get(&pdev->dev, "dpaux");