From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 14 Jan 2014 13:03:47 +0100 (CET) Received: from nbd.name ([46.4.11.11]:42596 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6826363AbaANMDpG6NFW (ORCPT ); Tue, 14 Jan 2014 13:03:45 +0100 Message-ID: <52D52796.3030509@phrozen.org> Date: Tue, 14 Jan 2014 13:03:34 +0100 From: John Crispin User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Wolfram Sang , linux-kernel@vger.kernel.org CC: Ralf Baechle , linux-mips@linux-mips.org Subject: Re: [PATCH 1/7] arch/mips/lantiq/xway: don't check resource with devm_ioremap_resource References: <1389700739-3696-1-git-send-email-wsa@the-dreams.de> In-Reply-To: <1389700739-3696-1-git-send-email-wsa@the-dreams.de> Content-Type: text/plain; charset=ISO-8859-1 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: 38975 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 Hi Wolfgang, should we take 1/7 and 6/7 via the mips tree ? John On 14/01/2014 12:58, 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 > --- > > Should go via subsystem tree > > arch/mips/lantiq/xway/dma.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c > index 08f7ebd..78a91fa 100644 > --- a/arch/mips/lantiq/xway/dma.c > +++ b/arch/mips/lantiq/xway/dma.c > @@ -220,10 +220,6 @@ ltq_dma_init(struct platform_device *pdev) > int i; > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - if (!res) > - panic("Failed to get dma resource"); > - > - /* remap dma register range */ > ltq_dma_membase = devm_ioremap_resource(&pdev->dev, res); > if (IS_ERR(ltq_dma_membase)) > panic("Failed to remap dma resource");