From patchwork Mon Jun 10 11:35:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 17724 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5DB2E25DF9 for ; Mon, 10 Jun 2013 11:50:20 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id s9sf2910856iec.9 for ; Mon, 10 Jun 2013 04:50:19 -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=rKREG+VfR8IASsuER33cdfcmKa+1vYeNNpr6QleX6HQ=; b=ap0mK/n7ArRlIZSRWU+jGn2Wz1pB0GzWHKPxqGyeieGthKdEq/kig+dFqjNkBzEsBs kG1hTYY0NrLemS7Jd/ZqLN/FtkF6I3G6FVE+h3Ig8vq+5PEhgPfqMxRiuT82L+pX816J ZectZuSMTcvVSJgymXjSwby9YvkSp9NGemqoQ7y1M4/0RmnTAML3HcwBajXVW6b1MMXk uOqA8SAsRl/BeD9NgDMt1hxLgxMIeHQhaeV9+2pteqbktiTMJ5fwjM69hfsfDvgBJP2n p3HfVgC0sQqJrNHf6NwlAzirVZkh+5eczV+63W0GimQGBa7F4ufKYfmJjWhoG3txGZRc 4wyA== X-Received: by 10.182.81.67 with SMTP id y3mr1543715obx.21.1370865019760; Mon, 10 Jun 2013 04:50:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.60.231 with SMTP id k7ls2733478qer.22.gmail; Mon, 10 Jun 2013 04:50:19 -0700 (PDT) X-Received: by 10.220.98.68 with SMTP id p4mr3203559vcn.28.1370865019540; Mon, 10 Jun 2013 04:50:19 -0700 (PDT) Received: from mail-vb0-x22e.google.com (mail-vb0-x22e.google.com [2607:f8b0:400c:c02::22e]) by mx.google.com with ESMTPS id ef7si4698812vdc.98.2013.06.10.04.50.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:19 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::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:c02::22e; Received: by mail-vb0-f46.google.com with SMTP id 10so4168449vbe.19 for ; Mon, 10 Jun 2013 04:50:19 -0700 (PDT) X-Received: by 10.221.4.131 with SMTP id oc3mr5238881vcb.49.1370865019429; Mon, 10 Jun 2013 04:50:19 -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 pb14csp64970vcb; Mon, 10 Jun 2013 04:50:18 -0700 (PDT) X-Received: by 10.66.141.80 with SMTP id rm16mr13829767pab.90.1370865018548; Mon, 10 Jun 2013 04:50:18 -0700 (PDT) Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by mx.google.com with ESMTPS id ol10si4678301pbb.154.2013.06.10.04.50.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.170 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.192.170; Received: by mail-pd0-f170.google.com with SMTP id x11so1568294pdj.29 for ; Mon, 10 Jun 2013 04:50:18 -0700 (PDT) X-Received: by 10.68.170.193 with SMTP id ao1mr9750386pbc.18.1370865018161; Mon, 10 Jun 2013 04:50:18 -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.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 04:50:17 -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" Subject: [PATCH 07/15] net: fec: Convert to use devm_ioremap_resource Date: Mon, 10 Jun 2013 17:05:05 +0530 Message-Id: <1370864113-17895-8-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: ALoCoQmDcyzEUd/SEvOoJ1hQOi3yiz6jT7PJ3ynX61CrZe6snbhMGmHdk1ysX1oCTqEpADNPXxIi X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::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" --- drivers/net/ethernet/freescale/fec_main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index c42c42a..b0d36b7 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -1876,17 +1876,17 @@ fec_probe(struct platform_device *pdev) (pdev->id_entry->driver_data & FEC_QUIRK_HAS_GBIT)) fep->pause_flag |= FEC_PAUSE_FLAG_AUTONEG; - fep->hwp = devm_request_and_ioremap(&pdev->dev, r); + fep->hwp = devm_ioremap_resource(&pdev->dev, r); + if (IS_ERR(fep->hwp)) { + ret = PTR_ERR(fep->hwp); + goto failed_ioremap; + } + fep->pdev = pdev; fep->dev_id = dev_id++; fep->bufdesc_ex = 0; - if (!fep->hwp) { - ret = -ENOMEM; - goto failed_ioremap; - } - platform_set_drvdata(pdev, ndev); ret = of_get_phy_mode(pdev->dev.of_node);