aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_gem_cma_helper.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-07-15 06:34:46 -0400
committerRusty Russell <rusty@rustcorp.com.au>2013-07-16 02:36:01 -0400
commitb03cda5145f39b19aef1152350c04f4e3412cd20 (patch)
treeb2f7c94ea7fc6b6386292ac46c6e55080fb0f1fc /drivers/gpu/drm/drm_gem_cma_helper.c
parent627df4bc9537b13e17086deef1c92326d2b92fd4 (diff)
drm/cma: Replace PTR_RET with PTR_ERR_OR_ZERO
PTR_RET is now deprecated. Use PTR_ERR_OR_ZERO instead. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/gpu/drm/drm_gem_cma_helper.c')
-rw-r--r--drivers/gpu/drm/drm_gem_cma_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c b/drivers/gpu/drm/drm_gem_cma_helper.c
index ece72a8ac245..61c1d17f870c 100644
--- a/drivers/gpu/drm/drm_gem_cma_helper.c
+++ b/drivers/gpu/drm/drm_gem_cma_helper.c
@@ -215,7 +215,7 @@ int drm_gem_cma_dumb_create(struct drm_file *file_priv,
215 215
216 cma_obj = drm_gem_cma_create_with_handle(file_priv, dev, 216 cma_obj = drm_gem_cma_create_with_handle(file_priv, dev,
217 args->size, &args->handle); 217 args->size, &args->handle);
218 return PTR_RET(cma_obj); 218 return PTR_ERR_OR_ZERO(cma_obj);
219} 219}
220EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create); 220EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create);
221 221