]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/msm/mdp5: fix error return value
authorRob Clark <robdclark@gmail.com>
Mon, 2 Jun 2014 11:24:27 +0000 (07:24 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 2 Jun 2014 11:36:30 +0000 (07:36 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c

index ee8446c1b5f6b2622e1b9cac5ef69916375b970d..42caf7fcb0b93c5776950ddf4e2bdd0adfebd0cf 100644 (file)
@@ -280,12 +280,22 @@ struct msm_kms *mdp5_kms_init(struct drm_device *dev)
                goto fail;
        }
 
-       ret = get_clk(pdev, &mdp5_kms->axi_clk, "bus_clk") ||
-                       get_clk(pdev, &mdp5_kms->ahb_clk, "iface_clk") ||
-                       get_clk(pdev, &mdp5_kms->src_clk, "core_clk_src") ||
-                       get_clk(pdev, &mdp5_kms->core_clk, "core_clk") ||
-                       get_clk(pdev, &mdp5_kms->lut_clk, "lut_clk") ||
-                       get_clk(pdev, &mdp5_kms->vsync_clk, "vsync_clk");
+       ret = get_clk(pdev, &mdp5_kms->axi_clk, "bus_clk");
+       if (ret)
+               goto fail;
+       ret = get_clk(pdev, &mdp5_kms->ahb_clk, "iface_clk");
+       if (ret)
+               goto fail;
+       ret = get_clk(pdev, &mdp5_kms->src_clk, "core_clk_src");
+       if (ret)
+               goto fail;
+       ret = get_clk(pdev, &mdp5_kms->core_clk, "core_clk");
+       if (ret)
+               goto fail;
+       ret = get_clk(pdev, &mdp5_kms->lut_clk, "lut_clk");
+       if (ret)
+               goto fail;
+       ret = get_clk(pdev, &mdp5_kms->vsync_clk, "vsync_clk");
        if (ret)
                goto fail;