summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-07-15 10:21:22 (GMT)
committerRusty Russell <rusty@rustcorp.com.au>2013-07-16 06:36:01 (GMT)
commit28ce42013c55339a35c669e534fc1200f42253d7 (patch)
treede00b6c5271e3c77580abb381fe05a7bcacaf767 /drivers
parentdac30a9843f8a6007e9d25cad2b5735679041397 (diff)
downloadlinux-fsl-qoriq-28ce42013c55339a35c669e534fc1200f42253d7.tar.xz
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>
Diffstat (limited to 'drivers')
-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 6687ba7..1219ab7 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)