]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/mediatek/mtk_mipi_tx: checking the wrong variable
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 Jul 2016 13:59:34 +0000 (16:59 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Jul 2016 12:47:04 +0000 (14:47 +0200)
We should be checking "phy_provider" here not "phy".

Fixes: 2e54c14e310f ('drm/mediatek: Add DSI sub driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160701135934.GA15723@mwanda
drivers/gpu/drm/mediatek/mtk_mipi_tx.c

index cf8f38d39e1017794c8cac8ea29dc03516b048f8..1c366f8cb2d0ec3bc16cf8a8e499474d7bc3d956 100644 (file)
@@ -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;
        }