Skip to content

Commit 5782017

Browse files
Dan Carpentervinodkoul
authored andcommitted
phy: phy-mtk-dp: Fix an error code in probe()
Negative -EINVAL was intended instead of positive EINVAL. Fixes: 6a23afa ("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>
1 parent 06c2afb commit 5782017

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/phy/mediatek/phy-mtk-dp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ static int mtk_dp_phy_probe(struct platform_device *pdev)
169169

170170
regs = *(struct regmap **)dev->platform_data;
171171
if (!regs)
172-
return dev_err_probe(dev, EINVAL,
172+
return dev_err_probe(dev, -EINVAL,
173173
"No data passed, requires struct regmap**\n");
174174

175175
dp_phy = devm_kzalloc(dev, sizeof(*dp_phy), GFP_KERNEL);

0 commit comments

Comments
 (0)