drm/tegra: dc: Omit superfluous error message in tegra_dc_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Thu, 16 Apr 2020 14:43:17 +0000 (22:43 +0800)
committerThierry Reding <treding@nvidia.com>
Fri, 17 Jul 2020 14:06:16 +0000 (16:06 +0200)
In the function tegra_dc_probe(), when get irq failed, the function
platform_get_irq() logs an error message, so remove redundant message
here.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c

index 04d6848..dc835ae 100644 (file)
@@ -2556,10 +2556,8 @@ static int tegra_dc_probe(struct platform_device *pdev)
                return PTR_ERR(dc->regs);
 
        dc->irq = platform_get_irq(pdev, 0);
-       if (dc->irq < 0) {
-               dev_err(&pdev->dev, "failed to get IRQ\n");
+       if (dc->irq < 0)
                return -ENXIO;
-       }
 
        err = tegra_dc_rgb_probe(dc);
        if (err < 0 && err != -ENODEV) {