From patchwork Mon Jun 10 11:35:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 17725 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6EF5925DF9 for ; Mon, 10 Jun 2013 11:50:26 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id x14sf36279963ief.2 for ; Mon, 10 Jun 2013 04:50:26 -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=LfI9eIcazJajjiKHqTzAX0apvAPYUa7bX2Vn4AMu3ls=; b=lPfxqgTxoRZVdcbyFYJoHkq9iKBU8sUSHQVzTbH46XDvfqh26ZEp1hWyy0/yw6ubV/ DonJM5yTlpqKe7Ix2c34cXkvGoiys73mJ+akdvGGXpL2ket4BI1uwKV0LP/nWujmaJk7 EihsSZSJUwof1Tam74Bd2gHoM4Yqaa6gDsWDBLGeghxLFiVfdy+/TkHFAqgQQeYjWv0p oo6Tta4H8rzSNQBsEUm5cbwebyywdVF2lIdghHETpZa5meJ+54W1xcRQVUdUvJz97ULs NitBy+2f+FuRzFyRLQJdgBRcQcWrio5ytaqxnLL3z10md6ebcSW0broWg3dHJu0+aNTO jPmA== X-Received: by 10.182.42.231 with SMTP id r7mr1401367obl.26.1370865026119; Mon, 10 Jun 2013 04:50:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.119.161 with SMTP id kv1ls1714526qeb.74.gmail; Mon, 10 Jun 2013 04:50:25 -0700 (PDT) X-Received: by 10.220.109.66 with SMTP id i2mr5277654vcp.51.1370865025907; Mon, 10 Jun 2013 04:50:25 -0700 (PDT) Received: from mail-ve0-x22e.google.com (mail-ve0-x22e.google.com [2607:f8b0:400c:c01::22e]) by mx.google.com with ESMTPS id i3si4695229vdw.113.2013.06.10.04.50.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:25 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22e 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::22e; Received: by mail-ve0-f174.google.com with SMTP id oz10so4698561veb.33 for ; Mon, 10 Jun 2013 04:50:25 -0700 (PDT) X-Received: by 10.58.29.42 with SMTP id g10mr5190014veh.59.1370865025764; Mon, 10 Jun 2013 04:50:25 -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 pb14csp64975vcb; Mon, 10 Jun 2013 04:50:25 -0700 (PDT) X-Received: by 10.66.118.129 with SMTP id km1mr13364536pab.112.1370865024819; Mon, 10 Jun 2013 04:50:24 -0700 (PDT) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by mx.google.com with ESMTPS id mr7si4690432pbb.77.2013.06.10.04.50.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.178 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.192.178; Received: by mail-pd0-f178.google.com with SMTP id w11so2892886pde.9 for ; Mon, 10 Jun 2013 04:50:24 -0700 (PDT) X-Received: by 10.66.88.105 with SMTP id bf9mr13627298pab.175.1370865024393; Mon, 10 Jun 2013 04:50:24 -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.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:21 -0700 (PDT) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, patches@linaro.org, netdev@vger.kernel.org, "David S. Miller" , Michal Simek Subject: [PATCH 08/15] net: emaclite: Convert to use devm_ioremap_resource Date: Mon, 10 Jun 2013 17:05:06 +0530 Message-Id: <1370864113-17895-9-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: ALoCoQm/6bBsDtd2TwejOq5zyEZyz3ogZmLgBG5d/n7XsZDjOck9MEt2kQI/y/aj1Y7VLEFALteF X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22e 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: netdev@vger.kernel.org CC: "David S. Miller" CC: Michal Simek --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 1cd131b..fd4dbda 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c @@ -1159,9 +1159,11 @@ static int xemaclite_of_probe(struct platform_device *ofdev) ndev->irq = res->start; res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); - lp->base_addr = devm_request_and_ioremap(&ofdev->dev, res); - if (!lp->base_addr) + lp->base_addr = devm_ioremap_resource(&ofdev->dev, res); + if (IS_ERR(lp->base_addr)) { + rc = PTR_ERR(lp->base_addr); goto error; + } ndev->mem_start = res->start; ndev->mem_end = res->end;