From patchwork Mon Jun 10 11:35:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 17726 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E763325DF9 for ; Mon, 10 Jun 2013 11:50:29 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id bv4sf4220318qab.2 for ; Mon, 10 Jun 2013 04:50:29 -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 :in-reply-to:references: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=SUjjnSLisN3M23r0NnuL8798uYtNagCrNg8WK93V6QA=; b=jkF6blmteZW/WJfqigPFPZt0kJSm2rG3HAuZ0A6tIC37RQBCHSLgM84zWgon1xksiB MBGtaUkaf+mFOPEice6JnNbS/ioifG6P2jmNyupvYwXHZ3oDje80FIYf/43/MUywpNuO smPyE33BjbUY+2DgjSq5ZMZssjpktJsUct0PgoNwEtPW9qx63t63mwyDcCiYzLE4r4DB JWAc0eL7O7j8fJJpKPwu1aYiM4NHYQVVS+d9CbUWhm+nBqMNjr85hMGaA2g7ISKtrSLy fIiDoJLC9VpI56C9jwiCd6BHmZi98TbwytH0yTwNEW5QhUsgPkkQvtZvOymxpniwMvMh JOCA== X-Received: by 10.224.36.66 with SMTP id s2mr8302808qad.6.1370865029731; Mon, 10 Jun 2013 04:50:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.130 with SMTP id p2ls2768482qek.57.gmail; Mon, 10 Jun 2013 04:50:29 -0700 (PDT) X-Received: by 10.52.171.135 with SMTP id au7mr4466530vdc.126.1370865029509; Mon, 10 Jun 2013 04:50:29 -0700 (PDT) Received: from mail-vb0-x235.google.com (mail-vb0-x235.google.com [2607:f8b0:400c:c02::235]) by mx.google.com with ESMTPS id fd1si4696949vcb.65.2013.06.10.04.50.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:29 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::235 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::235; Received: by mail-vb0-f53.google.com with SMTP id p12so4191950vbe.40 for ; Mon, 10 Jun 2013 04:50:29 -0700 (PDT) X-Received: by 10.52.157.138 with SMTP id wm10mr4516279vdb.57.1370865029383; Mon, 10 Jun 2013 04:50:29 -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.221.10.206 with SMTP id pb14csp64979vcb; Mon, 10 Jun 2013 04:50:28 -0700 (PDT) X-Received: by 10.66.163.200 with SMTP id yk8mr13654328pab.170.1370865028550; Mon, 10 Jun 2013 04:50:28 -0700 (PDT) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by mx.google.com with ESMTPS id ie10si4695428pbc.41.2013.06.10.04.50.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.179 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.192.179; Received: by mail-pd0-f179.google.com with SMTP id q10so1409679pdj.24 for ; Mon, 10 Jun 2013 04:50:28 -0700 (PDT) X-Received: by 10.66.145.229 with SMTP id sx5mr13739214pab.11.1370865028093; Mon, 10 Jun 2013 04:50:28 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id rn7sm10242037pbc.12.2013.06.10.04.50.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:27 -0700 (PDT) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, patches@linaro.org, netdev@vger.kernel.org, linux-can@vger.kernel.org, Marc Kleine-Budde , Wolfgang Grandegger Subject: [PATCH 09/15] net: can: Convert to use devm_ioremap_resource Date: Mon, 10 Jun 2013 17:05:07 +0530 Message-Id: <1370864113-17895-10-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1370864113-17895-1-git-send-email-tushar.behera@linaro.org> References: <1370864113-17895-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQlQrKuSwdBY1yZtftoQmQpUBtrlNki4cpl2Vi3APRGy9YFbXba6j/ymjg6VsTE2Dm3z/xV5 X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::235 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: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()") introduced devm_ioremap_resource() and deprecated the use of devm_request_and_ioremap(). Signed-off-by: Tushar Behera CC: netdev@vger.kernel.org CC: linux-can@vger.kernel.org CC: Marc Kleine-Budde CC: Wolfgang Grandegger Acked-by: Marc Kleine-Budde --- drivers/net/can/c_can/c_can_platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/can/c_can/c_can_platform.c b/drivers/net/can/c_can/c_can_platform.c index 6b6130b..b918c73 100644 --- a/drivers/net/can/c_can/c_can_platform.c +++ b/drivers/net/can/c_can/c_can_platform.c @@ -201,8 +201,8 @@ static int c_can_plat_probe(struct platform_device *pdev) priv->instance = pdev->id; res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - priv->raminit_ctrlreg = devm_request_and_ioremap(&pdev->dev, res); - if (!priv->raminit_ctrlreg || priv->instance < 0) + priv->raminit_ctrlreg = devm_ioremap_resource(&pdev->dev, res); + if (IS_ERR(priv->raminit_ctrlreg) || priv->instance < 0) dev_info(&pdev->dev, "control memory is not used for raminit\n"); else priv->raminit = c_can_hw_raminit;