From patchwork Wed Apr 25 04:12:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8126 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 211F723E13 for ; Wed, 25 Apr 2012 04:24:08 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id D17F5A1860D for ; Wed, 25 Apr 2012 04:24:07 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:24:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=Zp5nMSPFGSMVNgkPKDsjgizujAY39ukXwF9B8XAvDi0=; b=lu0EZqBJ2PH6lpGdapx6h6d4t+BKjbM97aLICCwviYvanUZ9fy8FhgJ5hO5k3G0JX1 a5j3ozF19EshXz0rIl6pj7aKGipmUPfRDjh0qUXaHL2Jhm5gNvxN+uWM4P1JVDdHfcwe kg7eDN4deySndDBGBJvXLDFdtuDbKrDYocZiU6/oz3gLIj+zc0E2LpXDtLWIL7spEt3L xu0noZ6ZJbdH+osLtDSvJG3Uhio35RzBQs34DEhu7in+Vm7jZViwXezNufkHrPOKJy11 71ciA2ISPV4iH5u16hVyF7DAXtkMeOKRHK5MkrFfbl+/ys2wIYlKSVZdRYgPS4zfF6Ru +Iew== Received: by 10.50.194.163 with SMTP id hx3mr631167igc.49.1335327847637; Tue, 24 Apr 2012 21:24:07 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.137.198 with SMTP id x6csp231286ibt; Tue, 24 Apr 2012 21:24:07 -0700 (PDT) Received: by 10.68.237.166 with SMTP id vd6mr4021859pbc.114.1335327846975; Tue, 24 Apr 2012 21:24:06 -0700 (PDT) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx.google.com with ESMTPS id of4si22406508pbb.262.2012.04.24.21.24.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:24:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.44 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.210.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.44 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pz0-f44.google.com with SMTP id z14so5396129dad.17 for ; Tue, 24 Apr 2012 21:24:06 -0700 (PDT) Received: by 10.68.219.226 with SMTP id pr2mr1588355pbc.66.1335327846524; Tue, 24 Apr 2012 21:24:06 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.24.02 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:24:05 -0700 (PDT) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: kgene.kim@samsung.com, linux@arm.linux.org.uk, patches@linaro.org, Darius Augulis , Ben Dooks Subject: [PATCH 28/33] ARM: S3C64XX: mach-real6410: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:38 +0530 Message-Id: <1335327163-11794-29-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1335327163-11794-1-git-send-email-tushar.behera@linaro.org> References: <1335327163-11794-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQkHQlbk7EoedPCnsvn0DeZoCupQIWechuItgvrgqCg+BF4dBs+oVKxYNTVBBzDci6Gjg3DL CC: Darius Augulis CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c64xx/mach-real6410.c | 19 ++++--------------- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-s3c64xx/mach-real6410.c b/arch/arm/mach-s3c64xx/mach-real6410.c index be2a9a2..5c08266 100644 --- a/arch/arm/mach-s3c64xx/mach-real6410.c +++ b/arch/arm/mach-s3c64xx/mach-real6410.c @@ -86,21 +86,10 @@ static struct s3c2410_uartcfg real6410_uartcfgs[] __initdata = { /* DM9000AEP 10/100 ethernet controller */ static struct resource real6410_dm9k_resource[] = { - [0] = { - .start = S3C64XX_PA_XM0CSN1, - .end = S3C64XX_PA_XM0CSN1 + 1, - .flags = IORESOURCE_MEM - }, - [1] = { - .start = S3C64XX_PA_XM0CSN1 + 4, - .end = S3C64XX_PA_XM0CSN1 + 5, - .flags = IORESOURCE_MEM - }, - [2] = { - .start = S3C_EINT(7), - .end = S3C_EINT(7), - .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL - } + [0] = DEFINE_RES_MEM(S3C64XX_PA_XM0CSN1, 2), + [1] = DEFINE_RES_MEM(S3C64XX_PA_XM0CSN1 + 4, 2), + [2] = DEFINE_RES_NAMED(S3C_EINT(7), 1, NULL, IORESOURCE_IRQ \ + | IORESOURCE_IRQ_HIGHLEVEL), }; static struct dm9000_plat_data real6410_dm9k_pdata = {