summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-07-15 15:51:22 +0530
committerChanho Park <chanho61.park@samsung.com>2014-07-15 17:31:09 +0900
commit62b3ee878cd17e02a9d5236e86b917b57bf9ccee (patch)
tree644fba557c01108137d893893621a93caad7b487
parentf269158a75b64b4f43ed1d0b03c947662ba7debb (diff)
downloadlinux-3.10-62b3ee878cd17e02a9d5236e86b917b57bf9ccee.tar.gz
linux-3.10-62b3ee878cd17e02a9d5236e86b917b57bf9ccee.tar.bz2
linux-3.10-62b3ee878cd17e02a9d5236e86b917b57bf9ccee.zip
dma-buf: 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>
-rw-r--r--drivers/base/dma-buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/dma-buf.c b/drivers/base/dma-buf.c
index 6687ba74187..1219ab7c310 100644
--- a/drivers/base/dma-buf.c
+++ b/drivers/base/dma-buf.c
@@ -680,7 +680,7 @@ int dma_buf_debugfs_create_file(const char *name,
d = debugfs_create_file(name, S_IRUGO, dma_buf_debugfs_dir,
write, &dma_buf_debug_fops);
- return PTR_RET(d);
+ return PTR_ERR_OR_ZERO(d);
}
#else
static inline int dma_buf_init_debugfs(void)