diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-23 13:46:55 -0500 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2018-07-30 08:50:12 -0400 |
commit | aff24cd1f531b0dd55e46f6a8f76cf44117f0a24 (patch) | |
tree | 9a00e8bd9d8790204a0d0ed36ef4b7a7e6c5c4eb /drivers/gpu/drm/msm | |
parent | 78918cd0eee346c43e2d9dc553fadfacad6cb488 (diff) |
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 <gustavo@embeddedor.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm')
-rw-r--r-- | drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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__, |