From: Dan Carpenter Date: Fri, 1 Jul 2016 13:59:34 +0000 (+0300) Subject: drm/mediatek/mtk_mipi_tx: checking the wrong variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1233d4d68af23526e5b90f345f7bf6e4961d47c0;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git drm/mediatek/mtk_mipi_tx: checking the wrong variable We should be checking "phy_provider" here not "phy". Fixes: 2e54c14e310f ('drm/mediatek: Add DSI sub driver') Signed-off-by: Dan Carpenter Reviewed-by: Matthias Brugger Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/20160701135934.GA15723@mwanda --- diff --git a/drivers/gpu/drm/mediatek/mtk_mipi_tx.c b/drivers/gpu/drm/mediatek/mtk_mipi_tx.c index cf8f38d39e10..1c366f8cb2d0 100644 --- a/drivers/gpu/drm/mediatek/mtk_mipi_tx.c +++ b/drivers/gpu/drm/mediatek/mtk_mipi_tx.c @@ -431,7 +431,7 @@ static int mtk_mipi_tx_probe(struct platform_device *pdev) phy_set_drvdata(phy, mipi_tx); phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); - if (IS_ERR(phy)) { + if (IS_ERR(phy_provider)) { ret = PTR_ERR(phy_provider); return ret; }