drm/tegra: dpaux: Fix incorrect return value of platform_get_irq
[ Upstream commit2a1ca44b65] When platform_get_irq fails, we should return dpaux->irq instead of -ENXIO. Fixes:6b6b604215("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5f0994e3f2
commit
883fdbbdbe
@@ -468,7 +468,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");
|
||||||
|
|||||||
Reference in New Issue
Block a user