summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/sh_veu.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-07-15 12:27:07 +0200
committerRusty Russell <rusty@rustcorp.com.au>2013-07-16 08:36:01 +0200
commit627df4bc9537b13e17086deef1c92326d2b92fd4 (patch)
treee68a42452a9f67e2b04c2372880bae4d327c7439 /drivers/media/platform/sh_veu.c
parentdma-buf: Replace PTR_RET with PTR_ERR_OR_ZERO (diff)
downloadlinux-627df4bc9537b13e17086deef1c92326d2b92fd4.tar.xz
linux-627df4bc9537b13e17086deef1c92326d2b92fd4.zip
sh_veu: 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/media/platform/sh_veu.c')
-rw-r--r--drivers/media/platform/sh_veu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/sh_veu.c b/drivers/media/platform/sh_veu.c
index aa4cca371cbf..744e43b480bc 100644
--- a/drivers/media/platform/sh_veu.c
+++ b/drivers/media/platform/sh_veu.c
@@ -359,7 +359,7 @@ static int sh_veu_context_init(struct sh_veu_dev *veu)
veu->m2m_ctx = v4l2_m2m_ctx_init(veu->m2m_dev, veu,
sh_veu_queue_init);
- return PTR_RET(veu->m2m_ctx);
+ return PTR_ERR_OR_ZERO(veu->m2m_ctx);
}
static int sh_veu_querycap(struct file *file, void *priv,