drm: sti: fix check for clk_pix_main
authorJassi Brar <jaswinder.singh@linaro.org>
Wed, 4 Feb 2015 16:37:00 +0000 (17:37 +0100)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Wed, 4 Feb 2015 16:52:07 +0000 (17:52 +0100)
copy-paste wasn't followed by editing, do it.

Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/gpu/drm/sti/sti_hqvdp.c

index f3db05dab0abb6210433b6195e80ddc205ed17a1..b0eb62de1b2ecc7d4446de5b946e972649dd725d 100644 (file)
@@ -1025,7 +1025,7 @@ static int sti_hqvdp_probe(struct platform_device *pdev)
        /* Get clock resources */
        hqvdp->clk = devm_clk_get(dev, "hqvdp");
        hqvdp->clk_pix_main = devm_clk_get(dev, "pix_main");
-       if (IS_ERR(hqvdp->clk) || IS_ERR(hqvdp->clk)) {
+       if (IS_ERR(hqvdp->clk) || IS_ERR(hqvdp->clk_pix_main)) {
                DRM_ERROR("Cannot get clocks\n");
                return -ENXIO;
        }