From: Gustavo A. R. Silva Date: Mon, 23 Jul 2018 18:46:55 +0000 (-0500) Subject: drm/msm: Replace PTR_RET with PTR_ERR_OR_ZERO X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=aff24cd1f531b0dd55e46f6a8f76cf44117f0a24;p=openwrt%2Fstaging%2Fblogic.git drm/msm: Replace PTR_RET with PTR_ERR_OR_ZERO PTR_RET is deprecated, use PTR_ERR_OR_ZERO instead. Signed-off-by: Gustavo A. R. Silva Signed-off-by: Rob Clark --- diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c index c1d7eac4fa25..790d39f816dc 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c @@ -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__,