drm/msm: Replace PTR_RET with PTR_ERR_OR_ZERO
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 23 Jul 2018 18:46:55 +0000 (13:46 -0500)
committerRob Clark <robdclark@gmail.com>
Mon, 30 Jul 2018 12:50:12 +0000 (08:50 -0400)
PTR_RET is deprecated, use PTR_ERR_OR_ZERO instead.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c

index c1d7eac4fa258a334313b56cb379c37a2817a659..790d39f816dc0c49545cb92cb58458c51f2c8278 100644 (file)
@@ -35,7 +35,7 @@ int msm_dss_get_clk(struct device *dev, struct dss_clk *clk_arry, int num_clk)
 
        for (i = 0; i < num_clk; i++) {
                clk_arry[i].clk = clk_get(dev, clk_arry[i].clk_name);
-               rc = PTR_RET(clk_arry[i].clk);
+               rc = PTR_ERR_OR_ZERO(clk_arry[i].clk);
                if (rc) {
                        DEV_ERR("%pS->%s: '%s' get failed. rc=%d\n",
                                __builtin_return_address(0), __func__,