sh_veu: Replace PTR_RET with PTR_ERR_OR_ZERO
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 15 Jul 2013 10:27:07 +0000 (15:57 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 16 Jul 2013 06:36:01 +0000 (16:06 +0930)
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>
drivers/media/platform/sh_veu.c

index aa4cca371cbffbd0b98613e9ac6d8661737b9f27..744e43b480bcc217f3da9522cc992061fa7f691a 100644 (file)
@@ -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,