summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-07-15 15:57:07 +0530
committerRusty Russell <rusty@rustcorp.com.au>2013-07-16 16:06:01 +0930
commit627df4bc9537b13e17086deef1c92326d2b92fd4 (patch)
treee68a42452a9f67e2b04c2372880bae4d327c7439 /drivers/media
parent28ce42013c55339a35c669e534fc1200f42253d7 (diff)
downloadop-kernel-dev-627df4bc9537b13e17086deef1c92326d2b92fd4.zip
op-kernel-dev-627df4bc9537b13e17086deef1c92326d2b92fd4.tar.gz
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')
-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 aa4cca3..744e43b 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,
OpenPOWER on IntegriCloud