dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] phy: phy-mtk-dp: Fix an error code in probe()
@ 2023-07-11  6:13 Dan Carpenter
  2023-07-11  6:26 ` Chen-Yu Tsai
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dan Carpenter @ 2023-07-11  6:13 UTC (permalink / raw)
  To: Markus Schneider-Pargmann
  Cc: Kishon Vijay Abraham I, Chun-Kuang Hu, Bo-Chen Chen, linux-phy,
	kernel-janitors, dri-devel, Matthias Brugger, Vinod Koul,
	Guillaume Ranquet, linux-mediatek, Chunfeng Yun,
	AngeloGioacchino Del Regno

Negative -EINVAL was intended instead of positive EINVAL.

Fixes: 6a23afad443a ("phy: phy-mtk-dp: Add driver for DP phy")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
 drivers/phy/mediatek/phy-mtk-dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/mediatek/phy-mtk-dp.c b/drivers/phy/mediatek/phy-mtk-dp.c
index 232fd3f1ff1b..d7024a144335 100644
--- a/drivers/phy/mediatek/phy-mtk-dp.c
+++ b/drivers/phy/mediatek/phy-mtk-dp.c
@@ -169,7 +169,7 @@ static int mtk_dp_phy_probe(struct platform_device *pdev)
 
 	regs = *(struct regmap **)dev->platform_data;
 	if (!regs)
-		return dev_err_probe(dev, EINVAL,
+		return dev_err_probe(dev, -EINVAL,
 				     "No data passed, requires struct regmap**\n");
 
 	dp_phy = devm_kzalloc(dev, sizeof(*dp_phy), GFP_KERNEL);
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-11  9:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-11  6:13 [PATCH] phy: phy-mtk-dp: Fix an error code in probe() Dan Carpenter
2023-07-11  6:26 ` Chen-Yu Tsai
2023-07-11  7:36 ` Vinod Koul
2023-07-11  9:22 ` AngeloGioacchino Del Regno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox