From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD77011705 for ; Mon, 11 Sep 2023 14:42:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FF30C433C8; Mon, 11 Sep 2023 14:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694443341; bh=U4Cxv8yaqYWvYdJ17jIrw/GMDb5i4KaCY4hLo0xhdYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y5XzQFNKMjVBgGdEAby5yju5orjYLH1tpkWDQIN8iAL/plVkbw6k0NJNZN1+y02IM /wFvkUIcuXlxGIp+zKdYudHPl8h6tBh3sRAVXNBbsBLAnsAxjfDiCJEv5bnTgsaWJr UadbsorgbLOfqzQc5ncKXh5kP/H4ljDFztXqeTVc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yangtao Li , Thierry Reding , Sasha Levin Subject: [PATCH 6.4 344/737] drm/tegra: dpaux: Fix incorrect return value of platform_get_irq Date: Mon, 11 Sep 2023 15:43:23 +0200 Message-ID: <20230911134700.135654617@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230911134650.286315610@linuxfoundation.org> References: <20230911134650.286315610@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yangtao Li [ Upstream commit 2a1ca44b654346cadfc538c4fb32eecd8daf3140 ] 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 Signed-off-by: Thierry Reding Link: https://patchwork.freedesktop.org/patch/msgid/20230710032355.72914-13-frank.li@vivo.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/tegra/dpaux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index 4d2677dcd8315..68ded2e34e1cf 100644 --- a/drivers/gpu/drm/tegra/dpaux.c +++ b/drivers/gpu/drm/tegra/dpaux.c @@ -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"); -- 2.40.1