Commit 2a1ca44b authored by Yangtao Li's avatar Yangtao Li Committed by Thierry Reding

drm/tegra: dpaux: Fix incorrect return value of platform_get_irq

When platform_get_irq fails, we should return dpaux->irq
instead of -ENXIO.

Fixes: 6b6b6042 ("drm/tegra: Add eDP support")
Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230710032355.72914-13-frank.li@vivo.com
parent 829912eb
...@@ -466,7 +466,7 @@ static int tegra_dpaux_probe(struct platform_device *pdev) ...@@ -466,7 +466,7 @@ static int tegra_dpaux_probe(struct platform_device *pdev)
dpaux->irq = platform_get_irq(pdev, 0); dpaux->irq = platform_get_irq(pdev, 0);
if (dpaux->irq < 0) if (dpaux->irq < 0)
return -ENXIO; return dpaux->irq;
if (!pdev->dev.pm_domain) { if (!pdev->dev.pm_domain) {
dpaux->rst = devm_reset_control_get(&pdev->dev, "dpaux"); dpaux->rst = devm_reset_control_get(&pdev->dev, "dpaux");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment