drm/tegra: dpaux: Fix incorrect return value of platform_get_irq
authorYangtao Li <frank.li@vivo.com>
Mon, 10 Jul 2023 03:23:49 +0000 (11:23 +0800)
committerThierry Reding <treding@nvidia.com>
Thu, 27 Jul 2023 16:41:59 +0000 (18:41 +0200)
When platform_get_irq fails, we should return dpaux->irq
instead of -ENXIO.

Fixes: 6b6b604215c6 ("drm/tegra: Add eDP support")
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230710032355.72914-13-frank.li@vivo.com
drivers/gpu/drm/tegra/dpaux.c

index 22b7b85..ef02d53 100644 (file)
@@ -466,7 +466,7 @@ static int tegra_dpaux_probe(struct platform_device *pdev)
 
        dpaux->irq = platform_get_irq(pdev, 0);
        if (dpaux->irq < 0)
-               return -ENXIO;
+               return dpaux->irq;
 
        if (!pdev->dev.pm_domain) {
                dpaux->rst = devm_reset_control_get(&pdev->dev, "dpaux");