Skip to content

Commit

Permalink
drm/tegra: dpaux: Fix incorrect return value of platform_get_irq
Browse files Browse the repository at this point in the history
[ Upstream commit 2a1ca44 ]

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

Fixes: 6b6b604 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
bbkzz authored and gregkh committed Sep 13, 2023
1 parent 508383d commit 4ab834f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tegra/dpaux.c
Expand Up @@ -468,7 +468,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");
Expand Down

0 comments on commit 4ab834f

Please sign in to comment.