From patchwork Mon Jun 10 11:35:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 17722 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ea0-f200.google.com (mail-ea0-f200.google.com [209.85.215.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5B99E25DF9 for ; Mon, 10 Jun 2013 11:50:14 +0000 (UTC) Received: by mail-ea0-f200.google.com with SMTP id g15sf4471599eak.11 for ; Mon, 10 Jun 2013 04:50:13 -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=S5S64vpSlH37DIMPM+unwG6/JyzkWO8B+h51G3tqlmI=; b=SbBObfMSGHd7qetMSnMsy6PzSL8AkSNP6BFA2kjtHbO0ZZfMb+hM6ZETsHOnJAUeDo EQDfOQdP3bEuDqgb5T1hdmFYZgM6QehbadN144949zjRwrX7qOjVB+KaYoAuWfSrO/o2 tL1P8wNPFUHazmqRzV6+yEMCAVuaNC/OoG8tQYx3dGeE6yqLNXH54OJHDwR/aFYP/lN9 GbdxooO+vY6c8iMXR6HP23EI1Wiox7mc3AAfSL95ttKVdCGEykkw4Y5ufYezG92fW6h6 giggJ3rPjPPShuUan2wSLr2yV9/iaKCOM/L/SzxKDihPk7nhn6hWQWRADPRrqKrLgU0t IYjw== X-Received: by 10.180.36.211 with SMTP id s19mr2333940wij.1.1370865013151; Mon, 10 Jun 2013 04:50:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.103.67 with SMTP id fu3ls787441wib.11.canary; Mon, 10 Jun 2013 04:50:13 -0700 (PDT) X-Received: by 10.180.108.175 with SMTP id hl15mr4587290wib.19.1370865013017; Mon, 10 Jun 2013 04:50:13 -0700 (PDT) Received: from mail-ve0-x236.google.com (mail-ve0-x236.google.com [2607:f8b0:400c:c01::236]) by mx.google.com with ESMTPS id us9si3430202wjc.107.2013.06.10.04.50.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:13 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::236 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:c01::236; Received: by mail-ve0-f182.google.com with SMTP id ox1so4659964veb.41 for ; Mon, 10 Jun 2013 04:50:11 -0700 (PDT) X-Received: by 10.52.155.67 with SMTP id vu3mr4514804vdb.94.1370865011895; Mon, 10 Jun 2013 04:50:11 -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 pb14csp64962vcb; Mon, 10 Jun 2013 04:50:11 -0700 (PDT) X-Received: by 10.68.231.65 with SMTP id te1mr9469260pbc.98.1370865011047; Mon, 10 Jun 2013 04:50:11 -0700 (PDT) Received: from mail-pa0-x22d.google.com (mail-pa0-x22d.google.com [2607:f8b0:400e:c03::22d]) by mx.google.com with ESMTPS id yu7si6831242pac.44.2013.06.10.04.50.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:11 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c03::22d is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=2607:f8b0:400e:c03::22d; Received: by mail-pa0-f45.google.com with SMTP id bi5so4375645pad.4 for ; Mon, 10 Jun 2013 04:50:10 -0700 (PDT) X-Received: by 10.66.219.102 with SMTP id pn6mr13631395pac.123.1370865010640; Mon, 10 Jun 2013 04:50:10 -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.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:07 -0700 (PDT) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, patches@linaro.org, linux-gpio@vger.kernel.org, Grant Likely , Linus Walleij Subject: [PATCH 05/15] gpio-sta2x11: Convert to use devm_ioremap_resource Date: Mon, 10 Jun 2013 17:05:03 +0530 Message-Id: <1370864113-17895-6-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: ALoCoQlrxAdHi0Rwg4yVP6TSO1eEcqQiAzl4uH05a/BFZJz2LcGN/dvcTVVnkxN2pcYKe3nadbl6 X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::236 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: Grant Likely CC: Linus Walleij --- drivers/gpio/gpio-sta2x11.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c index 5585425..c977c14 100644 --- a/drivers/gpio/gpio-sta2x11.c +++ b/drivers/gpio/gpio-sta2x11.c @@ -372,7 +372,9 @@ static int gsta_probe(struct platform_device *dev) chip = devm_kzalloc(&dev->dev, sizeof(*chip), GFP_KERNEL); chip->dev = &dev->dev; - chip->reg_base = devm_request_and_ioremap(&dev->dev, res); + chip->reg_base = devm_ioremap_resource(&dev->dev, res); + if (IS_ERR(chip->reg_base)) + return PTR_ERR(chip->reg_base); for (i = 0; i < GSTA_NR_BLOCKS; i++) { chip->regs[i] = chip->reg_base + i * 4096;