diff mbox

drm: sti: fix check for clk_pix_main

Message ID 1421479085-27493-1-git-send-email-jaswinder.singh@linaro.org
State Superseded
Headers show

Commit Message

Jassi Brar Jan. 17, 2015, 7:18 a.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Benjamin Gaignard Jan. 22, 2015, 3:14 p.m. UTC | #1
I looks good for me.

Ack-by: benjamin.gaignard@linaro.org

2015-01-17 8:18 GMT+01:00 Jassi Brar <jaswinder.singh@linaro.org>:
> 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 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/sti/sti_hqvdp.c b/drivers/gpu/drm/sti/sti_hqvdp.c
> index f3db05d..b0eb62d 100644
> --- a/drivers/gpu/drm/sti/sti_hqvdp.c
> +++ b/drivers/gpu/drm/sti/sti_hqvdp.c
> @@ -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;
>         }
> --
> 1.9.1
>
diff mbox

Patch

diff --git a/drivers/gpu/drm/sti/sti_hqvdp.c b/drivers/gpu/drm/sti/sti_hqvdp.c
index f3db05d..b0eb62d 100644
--- a/drivers/gpu/drm/sti/sti_hqvdp.c
+++ b/drivers/gpu/drm/sti/sti_hqvdp.c
@@ -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;
 	}