Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757201Ab3ENItm (ORCPT ); Tue, 14 May 2013 04:49:42 -0400 Received: from vsp-authed02.binero.net ([195.74.38.226]:36362 "HELO vsp-authed-02-02.binero.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756856Ab3ENIti (ORCPT ); Tue, 14 May 2013 04:49:38 -0400 Message-ID: <5191FA9C.50200@gaisler.com> Date: Tue, 14 May 2013 10:49:32 +0200 From: Andreas Larsson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Laurent Navet CC: wg@grandegger.com, mkl@pengutronix.de, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers: net: can: grcan: use devm_ioremap_resource() References: <1368458871-7402-1-git-send-email-laurent.navet@gmail.com> In-Reply-To: <1368458871-7402-1-git-send-email-laurent.navet@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1275 Lines: 35 On 2013-05-13 17:27, Laurent Navet wrote: > Replace a call to deprecated devm_request_and_ioremap by devm_ioremap_resource. > dev_err() message is no more needed since it's already displayed in > devm_ioremap_resource(). > > Signed-off-by: Laurent Navet > --- > drivers/net/can/grcan.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/net/can/grcan.c b/drivers/net/can/grcan.c > index 17fbc7a..9e9d0d6 100644 > --- a/drivers/net/can/grcan.c > +++ b/drivers/net/can/grcan.c > @@ -1683,10 +1683,9 @@ static int grcan_probe(struct platform_device *ofdev) > } > > res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); > - base = devm_request_and_ioremap(&ofdev->dev, res); > - if (!base) { > - dev_err(&ofdev->dev, "couldn't map IO resource\n"); > - err = -EADDRNOTAVAIL; > + base = devm_ioremap_resource(&ofdev->dev, res); > + if (IS_ERR(base)) { > + err = PTR_ERR(base); > goto exit_error; > } Acked-by: Andreas Larsson -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/