diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-07-15 16:04:46 +0530 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-07-16 16:06:01 +0930 |
commit | b03cda5145f39b19aef1152350c04f4e3412cd20 (patch) | |
tree | b2f7c94ea7fc6b6386292ac46c6e55080fb0f1fc /drivers/gpu/drm/drm_gem_cma_helper.c | |
parent | 627df4bc9537b13e17086deef1c92326d2b92fd4 (diff) | |
download | linux-b03cda5145f39b19aef1152350c04f4e3412cd20.tar.bz2 |
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.c | 2 |
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, cma_obj = drm_gem_cma_create_with_handle(file_priv, dev, args->size, &args->handle); - return PTR_RET(cma_obj); + return PTR_ERR_OR_ZERO(cma_obj); } EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create); |