diff options
author | 2023-07-11 09:13:25 +0300 | |
---|---|---|
committer | 2023-07-12 22:27:02 +0530 | |
commit | 5782017cc4d0c8f3425d55b893675bb8a20c33e9 (patch) | |
tree | 3fc48a0378023d73b6bbed8b12c1854da64466be | |
parent | Linux 6.5-rc1 (diff) | |
download | linux-5782017cc4d0c8f3425d55b893675bb8a20c33e9.tar.gz linux-5782017cc4d0c8f3425d55b893675bb8a20c33e9.tar.bz2 linux-5782017cc4d0c8f3425d55b893675bb8a20c33e9.zip |
phy: phy-mtk-dp: Fix an error code in probe()
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>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/3c699e00-2883-40d9-92c3-0da1dc38fdd4@moroto.mountain
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/phy/mediatek/phy-mtk-dp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |