From patchwork Mon Jun 10 11:35:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 17728 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0D1A325DF9 for ; Mon, 10 Jun 2013 11:50:40 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id ha12sf1409983vcb.0 for ; Mon, 10 Jun 2013 04:50:39 -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=bz9IOtOg2rQzRgfQ4G7F9IskAbhtn3ukd/5lHgg6KHs=; b=MDdyfuIiIpt09ygfw0jvKRtJEdaqt8/4HyLUVbXWVJSG6QFk4Yg4hvHMaY2f/u2AUL NL545iAYaDz2nfmPRYGbltmq8iYTIHl3mfk6C7qHy3Xs0MxHB9ELRofizb8Q9bv9qYPK 2ExhfV2tOm0s1Mq3FhJcbqiYtYQJLE7ymle1TOTlhFCK0pmygoY2LU0vzEeRJMunDK4N uKSjDSGgTmWiTsQGnDfuK/QS+HcicgMOY6ltkQfiA5bGfJ2LentIvCQ4jEOpTk3YvNUg U2tk0Z+Kgda755Zfk2MJi8lH6nD9iZi7na5LgbM9IO+hsNF6Sf6HlVK8Gb1GZll1Wc0x 2wsA== X-Received: by 10.224.59.205 with SMTP id m13mr8294620qah.7.1370865039752; Mon, 10 Jun 2013 04:50:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.86.202 with SMTP id r10ls2796819qez.86.gmail; Mon, 10 Jun 2013 04:50:39 -0700 (PDT) X-Received: by 10.220.170.72 with SMTP id c8mr5379894vcz.14.1370865039563; Mon, 10 Jun 2013 04:50:39 -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 l10si4687786vet.28.2013.06.10.04.50.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:39 -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 p12so4164662vbe.26 for ; Mon, 10 Jun 2013 04:50:39 -0700 (PDT) X-Received: by 10.52.36.115 with SMTP id p19mr4525829vdj.8.1370865039453; Mon, 10 Jun 2013 04:50:39 -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 pb14csp64982vcb; Mon, 10 Jun 2013 04:50:39 -0700 (PDT) X-Received: by 10.68.185.162 with SMTP id fd2mr9509160pbc.176.1370865038472; Mon, 10 Jun 2013 04:50:38 -0700 (PDT) Received: from mail-pa0-x235.google.com (mail-pa0-x235.google.com [2607:f8b0:400e:c03::235]) by mx.google.com with ESMTPS id pj4si6809484pac.182.2013.06.10.04.50.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:38 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c03::235 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=2607:f8b0:400e:c03::235; Received: by mail-pa0-f53.google.com with SMTP id tj12so2563083pac.40 for ; Mon, 10 Jun 2013 04:50:38 -0700 (PDT) X-Received: by 10.68.113.65 with SMTP id iw1mr9281839pbb.129.1370865038109; Mon, 10 Jun 2013 04:50:38 -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.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:35 -0700 (PDT) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, patches@linaro.org, Mark Brown , Liam Girdwood Subject: [PATCH 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource Date: Mon, 10 Jun 2013 17:05:09 +0530 Message-Id: <1370864113-17895-12-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: ALoCoQnulsR4LeENzcI8hS3XDhJ+ILxO+CXU0fK805I+VKDQjf3YLpPGvlP5Nhd3u3oAM9UqKDGj 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: Mark Brown CC: Liam Girdwood --- drivers/regulator/ti-abb-regulator.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/ti-abb-regulator.c b/drivers/regulator/ti-abb-regulator.c index 870d209..f494a11 100644 --- a/drivers/regulator/ti-abb-regulator.c +++ b/drivers/regulator/ti-abb-regulator.c @@ -722,10 +722,10 @@ static int ti_abb_probe(struct platform_device *pdev) ret = -ENODEV; goto err; } - abb->base = devm_request_and_ioremap(dev, res); - if (!abb->base) { + abb->base = devm_ioremap_resource(dev, res); + if (IS_ERR(abb->base)) { dev_err(dev, "Unable to map '%s'\n", pname); - ret = -ENOMEM; + ret = PTR_ERR(abb->base); goto err; } @@ -776,10 +776,10 @@ static int ti_abb_probe(struct platform_device *pdev) ret = -ENODEV; goto skip_opt; } - abb->ldo_base = devm_request_and_ioremap(dev, res); - if (!abb->ldo_base) { + abb->ldo_base = devm_ioremap_resource(dev, res); + if (IS_ERR(abb->ldo_base)) { dev_err(dev, "Unable to map '%s'\n", pname); - ret = -ENOMEM; + ret = PTR_ERR(abb->ldo_base); goto err; }