From patchwork Mon Jun 17 09:07:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 17943 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f197.google.com (mail-we0-f197.google.com [74.125.82.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3622A23971 for ; Mon, 17 Jun 2013 09:22:32 +0000 (UTC) Received: by mail-we0-f197.google.com with SMTP id w56sf2627518wes.0 for ; Mon, 17 Jun 2013 02:22:31 -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=vVQC4VvYLT4QPD4kAu/a4ZaRj7v3Yhbv01e0UI5htVY=; b=MCVGHtVMJboVsVdIhdZQzonx2TJGDGLOd+saXF8a1K7nQ0cLvPyTTQd2QvS4cGGauE 9DOLxKPIdpUigVFcUe/ml8a7mTDh1I+SRmfIrch+KMxZ05JP66y7dA18uzI8q2plegZQ 6vjVxkvTGSsRZNO3Sg1YtixjxmcqAIql542T6PTyjejhgKXdu1H20Vln0+1Nc7vZu93N mFzQ3UHtmYhv+OB+0I1YoskriRPbCrV1VDBuKJMl0416nojB5tfgoBznaWbtEc3p9Ek/ 5ioWqGSX8tT3EzGNTp6uEd/II55PVstS4bp/rKFNPSWbAsHGLOQANbuFtgZhPRt9IBlG QQ4w== X-Received: by 10.180.37.229 with SMTP id b5mr2210192wik.4.1371460951012; Mon, 17 Jun 2013 02:22:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.185.78 with SMTP id fa14ls341636wic.46.gmail; Mon, 17 Jun 2013 02:22:30 -0700 (PDT) X-Received: by 10.180.11.194 with SMTP id s2mr4371276wib.7.1371460950850; Mon, 17 Jun 2013 02:22:30 -0700 (PDT) Received: from mail-ve0-x229.google.com (mail-ve0-x229.google.com [2607:f8b0:400c:c01::229]) by mx.google.com with ESMTPS id fa18si5058901wic.43.2013.06.17.02.22.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 02:22:30 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::229 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::229; Received: by mail-ve0-f169.google.com with SMTP id m1so1929340ves.0 for ; Mon, 17 Jun 2013 02:22:29 -0700 (PDT) X-Received: by 10.58.168.208 with SMTP id zy16mr4203244veb.3.1371460949643; Mon, 17 Jun 2013 02:22: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.58.165.8 with SMTP id yu8csp26933veb; Mon, 17 Jun 2013 02:22:29 -0700 (PDT) X-Received: by 10.66.219.103 with SMTP id pn7mr7144836pac.123.1371460948742; Mon, 17 Jun 2013 02:22:28 -0700 (PDT) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [2607:f8b0:400e:c03::22b]) by mx.google.com with ESMTPS id zr1si5943923pbc.0.2013.06.17.02.22.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 02:22:28 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c03::22b is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=2607:f8b0:400e:c03::22b; Received: by mail-pa0-f43.google.com with SMTP id hz11so2673086pad.2 for ; Mon, 17 Jun 2013 02:22:28 -0700 (PDT) X-Received: by 10.68.104.196 with SMTP id gg4mr12183062pbb.25.1371460948252; Mon, 17 Jun 2013 02:22:28 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id u6sm13109970pbb.46.2013.06.17.02.22.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 02:22:27 -0700 (PDT) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, patches@linaro.org, sachin.kamat@linaro.org, sparclinux@vger.kernel.org, "David S. Miller" Subject: [PATCH V2 1/15] sparc,leon: Convert to use devm_ioremap_resource Date: Mon, 17 Jun 2013 14:37:44 +0530 Message-Id: <1371460064-19549-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1370864113-17895-2-git-send-email-tushar.behera@linaro.org> References: <1370864113-17895-2-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQlK4vlMdOJRxPeAbKAsrWVmBMBIXGC0jm3jdTO/hiJ0OTniFRoAc/MvUhUX2VdbeQi+pZ3+ X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::229 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(). While at it, also remove the error message as devm_ioremap_resource() also prints similar error message. Signed-off-by: Tushar Behera CC: sparclinux@vger.kernel.org CC: "David S. Miller" --- Changes for V2: * Removed redundant error message. arch/sparc/kernel/leon_pci_grpci1.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c index 7739a54..6df26e3 100644 --- a/arch/sparc/kernel/leon_pci_grpci1.c +++ b/arch/sparc/kernel/leon_pci_grpci1.c @@ -536,11 +536,9 @@ static int grpci1_of_probe(struct platform_device *ofdev) /* find device register base address */ res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); - regs = devm_request_and_ioremap(&ofdev->dev, res); - if (!regs) { - dev_err(&ofdev->dev, "io-regs mapping failed\n"); - return -EADDRNOTAVAIL; - } + regs = devm_ioremap_resource(&ofdev->dev, res); + if (IS_ERR(regs)) + return PTR_ERR(regs); /* * check that we're in Host Slot and that we can act as a Host Bridge