Received: by 10.223.164.202 with SMTP id h10csp48608wrb; Wed, 29 Nov 2017 16:47:08 -0800 (PST) X-Google-Smtp-Source: AGs4zMZnUVEuGg9rLCfPI//u3fgbWlwy/opjrErthLf+lra3W2UXsRvbPA0CKuJ0BBLXKlcYjzw6 X-Received: by 10.101.96.1 with SMTP id m1mr706658pgu.38.1512002827989; Wed, 29 Nov 2017 16:47:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512002827; cv=none; d=google.com; s=arc-20160816; b=hjVFTYG4tcNz3Hl47nFHkZLY6FSGoj7h9QBsTANrxzOMDvcIf//K+nctWelPOHPo8C /w1JzyLjO3tKIZuMioV+pBHF07EHJxjhvdrYEC6fPmKbNIsMrnXrIqZnWZTpqYKrZBra nSVfgvQtuYEwaJQb9D1xXl+tJGF3g2HhK5bzQcYsinD6ebZk0VKsVXxNexwDohJ/Mcux TJ7/qphLanc134vY5D4sJBUt2zrfKnqdjtu/KPcopOl6TSbctSnjIPZdK/XedKfmQm8B eRVyGpm9Z3+/ZwTiPZcwzZIiH8bNE6G6iLnYjj/eViLb+/gimk/O8k8YxiaBwjUpgchK SPRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=DYl+lsVLcsr//34uEMTCQS16ifnlBqavkApW5qYqW74=; b=kDhwJNl/Q3g3XDXQM5O4wye6pm8JHOYPQTrfFg8ZoGDxjdJXy2gIeWJS2+uU9URUcN wlYi0phZkCpzK9YFCk9LQHMHwUXYu+AxOd2gvZ3sC1RHG33O0Ew3tl3JSNNll+ePbhuj naZI+MgxnYWS7fx3t+G0nYjkMXl3mXIoeUxxHUYiUK3cr1O9NRaQVvwZ7YFhDrMZFNJt +jUkC9PT5QhuaplX3RVUSlvEpijVYhJjL62EX/YfAnDU7iy70oKxUIICN4eIB+QiezJW fvEwKql40DDm5RNiDX3bvzgYSNRY7qxovN72lr1n7zZRhNvRCNaHiFD1oMLFUvkLvDUB bn1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si2107596pgs.459.2017.11.29.16.46.52; Wed, 29 Nov 2017 16:47:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753824AbdK3Apf (ORCPT + 99 others); Wed, 29 Nov 2017 19:45:35 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:44350 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753689AbdK3Apc (ORCPT ); Wed, 29 Nov 2017 19:45:32 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3ynJbb2rRnz1qs0N; Thu, 30 Nov 2017 01:45:31 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3ynJbb0Bbdz1qql5; Thu, 30 Nov 2017 01:45:31 +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 0QgSs-19X0qd; Thu, 30 Nov 2017 01:45:29 +0100 (CET) X-Auth-Info: PT70Wc9+Wq1CHRedXuDr0xnAAw9DR6/eaPSdLqIx54M= 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; Thu, 30 Nov 2017 01:45:29 +0100 (CET) From: Lukasz Majewski To: Alexander Sverdlin , Arnd Bergmann , arndbergmann@gmail.com, Hartley Sweeten Cc: Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Olof Johansson , Linus Walleij , Lukasz Majewski Subject: [PATCH v3 1/6] ARM: ep93xx: ts72xx: Use DEFINE_RES_MEM macros where applicable Date: Thu, 30 Nov 2017 01:45:05 +0100 Message-Id: <20171130004510.23887-2-lukma@denx.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171130004510.23887-1-lukma@denx.de> References: <20171116232239.16823-1-lukma@denx.de> <20171130004510.23887-1-lukma@denx.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit cleans up the code by using dedicated macros instead of full definitions. Signed-off-by: Lukasz Majewski Acked-by: Alexander Sverdlin --- Changes for v2: - None Changes for v3: - None --- 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 = { -- 2.11.0 From 1585434070457147843@xxx Wed Nov 29 20:35:53 +0000 2017 X-GM-THRID: 1584302672956416146 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread