Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756816Ab3DLMiq (ORCPT ); Fri, 12 Apr 2013 08:38:46 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:64118 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755025Ab3DLMip (ORCPT ); Fri, 12 Apr 2013 08:38:45 -0400 Date: Fri, 12 Apr 2013 14:38:43 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: Silviu-Mihai Popescu cc: linux-media@vger.kernel.org, Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers: media: platform: convert to devm_ioremap_resource() In-Reply-To: <1365627565-17401-1-git-send-email-silviupopescu1990@gmail.com> Message-ID: References: <1365627565-17401-1-git-send-email-silviupopescu1990@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Provags-ID: V02:K0:HUnSePJ5Igm6mqAeqXuSu8kjm2ixQn4hvvqWWRWtcjj dl9tWeO9p660fQJYHnbllY4ceGCa53ocg4W+F9ofGBPBKP7j17 9vap+6E1uDBNICAkXYgAg8bTd88qH/P0aUbHS2JysStjVRNwHI bF/Z4iTZTGkbrrJqCChDl9ko+UBM/qGvPmEfAzcUFSn/pVcBJY qqhnBdqx5ZU3TsThQ3yiPzOKwumVzF0QaKftyMzIjwxnvaWsw4 gzC+vQoAx3TSWQTEJhPkCiGKX4iqt+z3ruCLJUoHF/mEcs8cm6 2tylIszA511RFloALlhEcsdB+70R7rGiQ6qunNB3avbLyE2rYU c0Lq/BF58fZf7hL9MF4BmYQly95+WSOXD3RDJRU38buc77euFR 1m5kQkPGY1cfQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1581 Lines: 50 Hi On Wed, 10 Apr 2013, Silviu-Mihai Popescu wrote: > Convert all uses of devm_request_and_ioremap() to the newly introduced > devm_ioremap_resource() which provides more consistent error handling. > > Signed-off-by: Silviu-Mihai Popescu Thanks for the patch, but an equivalent one is already upstream: http://git.linuxtv.org/media_tree.git/commitdiff/f2b4dc1a0fc8f52e06025497ce9bb252ff51f15f Thanks Guennadi > --- > drivers/media/platform/sh_veu.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/media/platform/sh_veu.c b/drivers/media/platform/sh_veu.c > index cb54c69..911f562 100644 > --- a/drivers/media/platform/sh_veu.c > +++ b/drivers/media/platform/sh_veu.c > @@ -1164,9 +1164,9 @@ static int sh_veu_probe(struct platform_device *pdev) > > veu->is_2h = resource_size(reg_res) == 0x22c; > > - veu->base = devm_request_and_ioremap(&pdev->dev, reg_res); > - if (!veu->base) > - return -ENOMEM; > + veu->base = devm_ioremap_resource(&pdev->dev, reg_res); > + if (IS_ERR(veu->base)) > + return PTR_ERR(veu->base); > > ret = devm_request_threaded_irq(&pdev->dev, irq, sh_veu_isr, sh_veu_bh, > 0, "veu", veu); > -- > 1.7.9.5 > --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- 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/