From patchwork Thu Nov 16 23:22:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 10062187 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 82490604D3 for ; Thu, 16 Nov 2017 23:24:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 757892AC4C for ; Thu, 16 Nov 2017 23:24:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 696B52AC54; Thu, 16 Nov 2017 23:24:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EC8FC2AC51 for ; Thu, 16 Nov 2017 23:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=gOu3pcPX2eXU5QU4rhfis0ZeBdxEur7OUFBuD4cy6f4=; b=VMaAKwMJY15DSWWVj1+orT3M97 rOBBI2YJTUTSiJMmitY/7yi1bju305dtf1W+GoehkuCEPLzGVXykv2zhFx6hqQp7faUKZrfoP470X iH4oTUY0mYzX1HuDC4v+TYhJc9D+uhWIWZBJKrsDsAU1PP8X1ZloBSuJiqLqdaGUGL7yt9tT7i4b5 RYV6A68TwHW3mCslIitnkheuJugUkovwz/KLF/DfMn2TyWco2X6o4auqhmQCmFoFThK4LIB/asOgA jy9pHWXGyjJCSH9YpOlV15XryWFPMcQKZW+umui+dIluRK1zVSXHbnVc7ENO2Y8rNJydGhmuunJpU kFX3FCCQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eFTVg-0004Er-DG; Thu, 16 Nov 2017 23:23:52 +0000 Received: from mail-out.m-online.net ([212.18.0.9]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eFTVH-0003kX-NM for linux-arm-kernel@lists.infradead.org; Thu, 16 Nov 2017 23:23:32 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3ydHNR1Bnvz1qs14; Fri, 17 Nov 2017 00:23:03 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3ydHNR0xx3z1s7pj; Fri, 17 Nov 2017 00:23:03 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id B7L2d-lrEXFk; Fri, 17 Nov 2017 00:23:01 +0100 (CET) X-Auth-Info: M529xTNf2lUbhQggfzTp70t0fvgKTwtA7UOZn1D9qic= Received: from localhost.localdomain (89-64-27-66.dynamic.chello.pl [89.64.27.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 17 Nov 2017 00:23:01 +0100 (CET) From: Lukasz Majewski To: Hartley Sweeten , Alexander Sverdlin , Arnd Bergmann , arndbergmann@gmail.com Subject: [PATCH 1/4] ARM: ep93xx: ts72xx: Use DEFINE_RES_MEM macros where applicable Date: Fri, 17 Nov 2017 00:22:36 +0100 Message-Id: <20171116232239.16823-2-lukma@denx.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171116232239.16823-1-lukma@denx.de> References: <20171116232239.16823-1-lukma@denx.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171116_152328_051737_4CA6EF44 X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Linus Walleij , Lukasz Majewski , Russell King , Olof Johansson , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This commit cleans up the code by using dedicated macros instead of full definitions. Signed-off-by: Lukasz Majewski --- arch/arm/mach-ep93xx/ts72xx.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c index 8745162ec05d..06345b85f27c 100644 --- a/arch/arm/mach-ep93xx/ts72xx.c +++ b/arch/arm/mach-ep93xx/ts72xx.c @@ -187,16 +187,8 @@ static struct platform_device ts72xx_rtc_device = { }; static struct resource ts72xx_wdt_resources[] = { - { - .start = TS72XX_WDT_CONTROL_PHYS_BASE, - .end = TS72XX_WDT_CONTROL_PHYS_BASE + SZ_4K - 1, - .flags = IORESOURCE_MEM, - }, - { - .start = TS72XX_WDT_FEED_PHYS_BASE, - .end = TS72XX_WDT_FEED_PHYS_BASE + SZ_4K - 1, - .flags = IORESOURCE_MEM, - }, + DEFINE_RES_MEM(TS72XX_WDT_CONTROL_PHYS_BASE, SZ_4K), + DEFINE_RES_MEM(TS72XX_WDT_FEED_PHYS_BASE, SZ_4K), }; static struct platform_device ts72xx_wdt_device = { @@ -216,11 +208,7 @@ static struct ep93xx_eth_data __initdata ts72xx_eth_data = { #define TS73XX_FPGA_LOADER_BASE 0x03c00000 static struct resource ts73xx_fpga_resources[] = { - { - .start = EP93XX_CS1_PHYS_BASE + TS73XX_FPGA_LOADER_BASE, - .end = EP93XX_CS1_PHYS_BASE + TS73XX_FPGA_LOADER_BASE + 1, - .flags = IORESOURCE_MEM, - }, + DEFINE_RES_MEM(EP93XX_CS1_PHYS_BASE + TS73XX_FPGA_LOADER_BASE, 0x01), }; static struct platform_device ts73xx_fpga_device = {