From patchwork Wed Apr 25 04:12:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8127 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 EF2A823E13 for ; Wed, 25 Apr 2012 04:24:12 +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 ABB91A185F9 for ; Wed, 25 Apr 2012 04:24:12 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:24:12 -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=dNY60VkJix+2Jaz5C+HfPDEz+tfJ/pSruHGma3418yk=; b=evSSku00wN5xofg2sXSsvKP3QoNwcqw1zFkOruBbLNLTcHxkG3Oqwln3rWrkVQVEPa 9zyGoiDuWA78BwRM8MzvcwLNTJ8yauFqX9ZPt1bHTQqalLtsSghTkzxufd3TCUXFpJvH +vVHwH/9oyxriTeg3uEB5tbqdF8NokWromH3pox1Hb6V2RRcsUKQxHBv/KKw/6LnyOKZ Dnp058v3CJm0Vp2eRV1/qGuWyT1tv9w8yV6v9tPguI5/9uVR5vf+U6RS1k0nsE09UPXz occfxkNYWlyPAkfF3dSljcbjojQogs/VxEo7r2D6C8EeQaG7i9HnUiDSwjYJqGUwj4AT zYCQ== Received: by 10.50.194.163 with SMTP id hx3mr631301igc.49.1335327852431; Tue, 24 Apr 2012 21:24:12 -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 x6csp231297ibt; Tue, 24 Apr 2012 21:24:11 -0700 (PDT) Received: by 10.68.237.166 with SMTP id vd6mr4022475pbc.114.1335327851841; Tue, 24 Apr 2012 21:24:11 -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.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:24:11 -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:11 -0700 (PDT) Received: by 10.68.189.106 with SMTP id gh10mr2079931pbc.85.1335327851587; Tue, 24 Apr 2012 21:24:11 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.24.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:24:11 -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, Ben Dooks Subject: [PATCH 29/33] ARM: S3C64XX: mach-smdk6410: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:39 +0530 Message-Id: <1335327163-11794-30-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: ALoCoQkbBcluOwilxn2W2Ntq7UbbgvR9pwHwd52BiKgPZ1d07CtnY40ae63kN+pIFodJ9GnQXMoz CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c64xx/mach-smdk6410.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c index d55bc96..1ecd048 100644 --- a/arch/arm/mach-s3c64xx/mach-smdk6410.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c @@ -182,16 +182,9 @@ static struct s3c_fb_platdata smdk6410_lcd_pdata __initdata = { */ static struct resource smdk6410_smsc911x_resources[] = { - [0] = { - .start = S3C64XX_PA_XM0CSN1, - .end = S3C64XX_PA_XM0CSN1 + SZ_64K - 1, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = S3C_EINT(10), - .end = S3C_EINT(10), - .flags = IORESOURCE_IRQ | IRQ_TYPE_LEVEL_LOW, - }, + [0] = DEFINE_RES_MEM(S3C64XX_PA_XM0CSN1, SZ_64K), + [1] = DEFINE_RES_NAMED(S3C_EINT(10), 1, NULL, IORESOURCE_IRQ \ + | IRQ_TYPE_LEVEL_LOW), }; static struct smsc911x_platform_config smdk6410_smsc911x_pdata = {