Message ID | 1373884027-24846-1-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBM5ER6HQKGQEH5MSRUI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f200.google.com (mail-gg0-f200.google.com [209.85.161.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8695D25E13 for <linaro@patches.linaro.org>; Mon, 15 Jul 2013 10:42:59 +0000 (UTC) Received: by mail-gg0-f200.google.com with SMTP id k5sf12646705ggd.7 for <linaro@patches.linaro.org>; Mon, 15 Jul 2013 03:42:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=i1qCQUfXlfIXonHJrcDRn55toRnYcBxwmXXLY89cTQo=; b=RdsO2tcObQ6J5flQpm1WJwzZk5S48abxCX5WIC1rZrjB+GkI5+oWRJK4nD2/1bgQEz 26l2dLHBkdRdwLqMSUAE/rnqsH0Tp7zP5JoGf1lRp1qwteroGtss3Q+KyDahsXlILa97 RWNUX2ozuwcY+1gwSGsXW4DAF4ChEUatcFJLQ54z0354kx+dJu1WYmlni31oYX8vjJ68 MdKAlzbajWFjDZK/pLYdK8SDPp+I5zxB/LC0R0KOw4ANfHuPMW9Sp4Vocukmgw5vUqrt Q3aJlo1AmuK1z4bAlLptor4DtZgixRshlz+b0ifj78RnCx7wbzgW89I3EEeI4GoHeEwx LrPg== X-Received: by 10.236.55.129 with SMTP id k1mr28151575yhc.1.1373884979227; Mon, 15 Jul 2013 03:42:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.132.38 with SMTP id or6ls4202593qeb.7.gmail; Mon, 15 Jul 2013 03:42:59 -0700 (PDT) X-Received: by 10.58.224.102 with SMTP id rb6mr27927665vec.43.1373884979108; Mon, 15 Jul 2013 03:42:59 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id k4si14674216vdi.80.2013.07.15.03.42.59 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 03:42:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id b10so9703744vea.30 for <patchwork-forward@linaro.org>; Mon, 15 Jul 2013 03:42:59 -0700 (PDT) X-Received: by 10.52.23.83 with SMTP id k19mr4540906vdf.106.1373884979018; Mon, 15 Jul 2013 03:42:59 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.149.77 with SMTP id s13csp62234vcv; Mon, 15 Jul 2013 03:42:58 -0700 (PDT) X-Received: by 10.66.102.70 with SMTP id fm6mr54380273pab.78.1373884978192; Mon, 15 Jul 2013 03:42:58 -0700 (PDT) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by mx.google.com with ESMTPS id vv7si5139090pbc.145.2013.07.15.03.42.57 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 03:42:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.46; Received: by mail-pb0-f46.google.com with SMTP id rq2so11190278pbb.33 for <patches@linaro.org>; Mon, 15 Jul 2013 03:42:57 -0700 (PDT) X-Received: by 10.68.217.7 with SMTP id ou7mr53095489pbc.8.1373884977690; Mon, 15 Jul 2013 03:42:57 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id td4sm63807246pac.20.2013.07.15.03.42.54 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 03:42:57 -0700 (PDT) From: Sachin Kamat <sachin.kamat@linaro.org> To: linux-media@vger.kernel.org Cc: g.liakhovetski@gmx.de, rusty@rustcorp.com.au, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] [media] sh_veu: Replace PTR_RET with PTR_ERR_OR_ZERO Date: Mon, 15 Jul 2013 15:57:07 +0530 Message-Id: <1373884027-24846-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnQhZlSacZqgcfeROlWU81HQCre0MsCFElTKIT30pY2j1l1X1D/FtNC0h3fxV1Js327KkoA X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
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,
PTR_RET is now deprecated. Use PTR_ERR_OR_ZERO instead. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- Compile tested and based on the following tree: git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux.git (PTR_RET) Dependent on [1] [1] http://lkml.indiana.edu/hypermail/linux/kernel/1306.2/00010.html --- drivers/media/platform/sh_veu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)