From patchwork Mon Jun 10 11:34:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 17718 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A5CDE25DF9 for ; Mon, 10 Jun 2013 11:49:53 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id l109sf6883814yhq.5 for ; Mon, 10 Jun 2013 04:49:53 -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=gK1S6ad/hg57/OEMJ53AeHIGRwQ+ML1QlI/IzrutP5A=; b=BB5sRqaHeI2pMfw0I6dyXBdoHXe6yBBlH86Va1czZGAym8NmjhqaRsS43iV8WZEsWV xYHXuKfy8DEB4wxPq2aCvE/rfcrP6fQwWRjkk/EYyRrSTHCBN9Xm3BkFfLcyie46MnKJ p0LslwGpRaLxADGlPaq0LlWfkf9Xnk+MqLsx9Wy99TAdamb8hjLuYiydAUWu/u9VHeCj SGlyb32CDHTVVVjhp9Y4OYBg4W0UtCVOD7pDEQ2G7LEtOTVyz+nqvuFk0vhYrgtCgKSu 3gWz9d4I0eOudCt45ZJc3Kpg5a1pYfKiNsAqnHOPU4B1K4OVsPwv7bpdID/xUfM1jvkb 0pRQ== X-Received: by 10.236.226.6 with SMTP id a6mr6133066yhq.35.1370864993474; Mon, 10 Jun 2013 04:49:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.118.66 with SMTP id kk2ls2714611qeb.48.gmail; Mon, 10 Jun 2013 04:49:53 -0700 (PDT) X-Received: by 10.58.233.233 with SMTP id tz9mr5380866vec.13.1370864993246; Mon, 10 Jun 2013 04:49:53 -0700 (PDT) Received: from mail-vb0-x22d.google.com (mail-vb0-x22d.google.com [2607:f8b0:400c:c02::22d]) by mx.google.com with ESMTPS id zt2si4720701vdb.11.2013.06.10.04.49.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:49:53 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22d 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::22d; Received: by mail-vb0-f45.google.com with SMTP id p14so2040642vbm.18 for ; Mon, 10 Jun 2013 04:49:53 -0700 (PDT) X-Received: by 10.52.53.36 with SMTP id y4mr4401139vdo.51.1370864993108; Mon, 10 Jun 2013 04:49:53 -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 pb14csp64949vcb; Mon, 10 Jun 2013 04:49:52 -0700 (PDT) X-Received: by 10.68.76.67 with SMTP id i3mr9621435pbw.20.1370864992245; Mon, 10 Jun 2013 04:49:52 -0700 (PDT) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by mx.google.com with ESMTPS id wn4si4654993pbc.295.2013.06.10.04.49.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:49:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.180 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.192.180; Received: by mail-pd0-f180.google.com with SMTP id 10so7306507pdi.39 for ; Mon, 10 Jun 2013 04:49:51 -0700 (PDT) X-Received: by 10.68.203.137 with SMTP id kq9mr1043862pbc.185.1370864991867; Mon, 10 Jun 2013 04:49:51 -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.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:49:50 -0700 (PDT) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, patches@linaro.org, sparclinux@vger.kernel.org, "David S. Miller" Subject: [PATCH 01/15] sparc,leon: Convert to use devm_ioremap_resource Date: Mon, 10 Jun 2013 17:04:59 +0530 Message-Id: <1370864113-17895-2-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: ALoCoQm7rdL3lUtV9RoIxs0+OuWdsH+IgxXgqfSsEBdnxkQvZDIk8qhT7gOfzAWERL+PmEZUUSTI X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22d 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: sparclinux@vger.kernel.org CC: "David S. Miller" --- * Not compile tested. arch/sparc/kernel/leon_pci_grpci1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c index 7739a54..23497f4 100644 --- a/arch/sparc/kernel/leon_pci_grpci1.c +++ b/arch/sparc/kernel/leon_pci_grpci1.c @@ -536,10 +536,10 @@ 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) { + regs = devm_ioremap_resource(&ofdev->dev, res); + if (IS_ERR(regs)) { dev_err(&ofdev->dev, "io-regs mapping failed\n"); - return -EADDRNOTAVAIL; + return PTR_ERR(regs); } /*