From patchwork Mon Jun 10 11:35:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 17721 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f199.google.com (mail-gg0-f199.google.com [209.85.161.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 22ACC25DF9 for ; Mon, 10 Jun 2013 11:50:06 +0000 (UTC) Received: by mail-gg0-f199.google.com with SMTP id o1sf6124077ggn.2 for ; Mon, 10 Jun 2013 04:50:05 -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=C1Nb7maVjPOpcasUL6IDZfVhMZeO74Fy/GEUXThEfj8=; b=mtO6YuMbMeutquD4jXSShV+0P5ZcbTb+4bmakc4areoclOpDOyNffeoImDV6k3x5ng A1Jrh4g7gRGWOOcS3BABBS/nykXT+o05S1TqwlJkXyZI3p6GRpBNnq6OIWSpzbbHbiKp 6JRAoAedIohX2TFf7ZfD5bEFdQWQ/wQfAYayritqdJkqWI0UtZfX5VnaNkY6mjYmL/8t ILYxWwYw8Tk+fvb4GtayHlq7h9x81eI7hrrt9G6Ur9fny3YO6mtg57/IGKuMREb885PE ZUPdRxySMenOg24+/y26D8LfGT6SsMoB1PpyodFr1hKF1RyvZgmvVFqIDbEWryC6R6mn PWZQ== X-Received: by 10.224.36.66 with SMTP id s2mr8301967qad.6.1370865005834; Mon, 10 Jun 2013 04:50:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.66 with SMTP id o2ls115696qeq.92.gmail; Mon, 10 Jun 2013 04:50:05 -0700 (PDT) X-Received: by 10.220.48.73 with SMTP id q9mr5338872vcf.36.1370865005623; Mon, 10 Jun 2013 04:50:05 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id sz6si4721656vdc.10.2013.06.10.04.50.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id m17so217499vca.23 for ; Mon, 10 Jun 2013 04:50:05 -0700 (PDT) X-Received: by 10.52.170.148 with SMTP id am20mr4517087vdc.75.1370865005505; Mon, 10 Jun 2013 04:50:05 -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 pb14csp64957vcb; Mon, 10 Jun 2013 04:50:05 -0700 (PDT) X-Received: by 10.66.122.39 with SMTP id lp7mr13387073pab.208.1370865004665; Mon, 10 Jun 2013 04:50:04 -0700 (PDT) Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by mx.google.com with ESMTPS id e8si6788297pao.310.2013.06.10.04.50.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.175 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.192.175; Received: by mail-pd0-f175.google.com with SMTP id 4so7306268pdd.34 for ; Mon, 10 Jun 2013 04:50:04 -0700 (PDT) X-Received: by 10.66.255.72 with SMTP id ao8mr13626816pad.3.1370865004220; Mon, 10 Jun 2013 04:50:04 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id rn7sm10242037pbc.12.2013.06.10.04.49.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:01 -0700 (PDT) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, patches@linaro.org, linux-gpio@vger.kernel.org, Linus Walleij , Grant Likely Subject: [PATCH 04/15] gpio_msm: Convert to use devm_ioremap_resource Date: Mon, 10 Jun 2013 17:05:02 +0530 Message-Id: <1370864113-17895-5-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: ALoCoQlLkloj8PoA4mJb15fNsuvIdhpxgZpkf8t8+JxV8sbt8ZfDjOFsmEaGahX6+xJP32MN5EE4 X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 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: linux-gpio@vger.kernel.org CC: Linus Walleij CC: Grant Likely --- drivers/gpio/gpio-msm-v1.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-msm-v1.c b/drivers/gpio/gpio-msm-v1.c index c798585a..c0ead43 100644 --- a/drivers/gpio/gpio-msm-v1.c +++ b/drivers/gpio/gpio-msm-v1.c @@ -652,14 +652,14 @@ static int __devinit gpio_msm_v1_probe(struct platform_device *pdev) return irq2; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base1 = devm_request_and_ioremap(&pdev->dev, res); - if (!base1) - return -EADDRNOTAVAIL; + base1 = devm_ioremap_resource(&pdev->dev, res); + if (IS_ERR(base1)) + return PTR_ERR(base1); res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - base2 = devm_request_and_ioremap(&pdev->dev, res); - if (!base2) - return -EADDRNOTAVAIL; + base2 = devm_ioremap_resource(&pdev->dev, res); + if (IS_ERR(base2)) + return PTR_ERR(base2); for (i = FIRST_GPIO_IRQ; i < FIRST_GPIO_IRQ + NR_GPIO_IRQS; i++) { if (i - FIRST_GPIO_IRQ >=