From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 16 May 2013 16:46:52 +0200 (CEST) Received: from nbd.name ([46.4.11.11]:40560 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6822672Ab3EPOqsT3m1p (ORCPT ); Thu, 16 May 2013 16:46:48 +0200 Message-ID: <5194F03D.3080709@phrozen.org> Date: Thu, 16 May 2013 16:42:05 +0200 From: John Crispin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Wolfram Sang CC: linux-kernel@vger.kernel.org, Ralf Baechle , linux-mips@linux-mips.org Subject: Re: [PATCH 31/33] arch/mips/lantiq/xway: don't check resource with devm_ioremap_resource References: <1368702961-4325-1-git-send-email-wsa@the-dreams.de> <1368702961-4325-32-git-send-email-wsa@the-dreams.de> In-Reply-To: <1368702961-4325-32-git-send-email-wsa@the-dreams.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 36423 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: john@phrozen.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On 16/05/13 13:15, Wolfram Sang wrote: > devm_ioremap_resource does sanity checks on the given resource. No need to > duplicate this in the driver. > > Signed-off-by: Wolfram Sang Acked-by: John Crispin > --- > arch/mips/lantiq/xway/gptu.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/arch/mips/lantiq/xway/gptu.c b/arch/mips/lantiq/xway/gptu.c > index 9861c86..d6a79b8 100644 > --- a/arch/mips/lantiq/xway/gptu.c > +++ b/arch/mips/lantiq/xway/gptu.c > @@ -144,10 +144,6 @@ static int gptu_probe(struct platform_device *pdev) > } > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - if (!res) { > - dev_err(&pdev->dev, "Failed to get resource\n"); > - return -ENOMEM; > - } > > /* remap gptu register range */ > gptu_membase = devm_ioremap_resource(&pdev->dev, res);