From patchwork Wed Apr 25 04:12:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8124 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 D481023E13 for ; Wed, 25 Apr 2012 04:23:58 +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 8C8CEA185F9 for ; Wed, 25 Apr 2012 04:23:58 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:23:58 -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=cMoa2RZOMzKxrdOJK32L9nrBLiSH0PgJa/8gr9avTBo=; b=YX0Lm975nANytHTI2w4b+wJRJTtKqW/VOKwvQjqEk7tM3VYaKe/ZSJmS6UnPAclDxX oAhoDv+XeAZY3p2gcaun8yCgz+25O6WWRR3CBGfL2KZd6sGfImL5miR6mCY9naedMr+1 p92gUFg7jhRye2A5ohajRZ7FFOyjEYACF1xouqJdp90DPR5FLkdPl5gMNLMnI7jKe8m1 Wj1300x4hjON4Sps8OnIRCY1RJstug4yUnNKtZM8JDLX8Opc+Ks6LHQuteqLdmmxpUl/ 7jGfu1RahZgGDZM9WDiJ9g713q1AIVptidO55hAT76yVYecLuasBUipjGgAZii2F52wc KMVg== Received: by 10.42.80.19 with SMTP id t19mr558361ick.55.1335327838291; Tue, 24 Apr 2012 21:23:58 -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 x6csp231279ibt; Tue, 24 Apr 2012 21:23:57 -0700 (PDT) Received: by 10.68.220.161 with SMTP id px1mr4339851pbc.12.1335327837630; Tue, 24 Apr 2012 21:23:57 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id ox6si756797pbb.309.2012.04.24.21.23.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 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-pb0-f50.google.com with SMTP id xa12so1100728pbc.37 for ; Tue, 24 Apr 2012 21:23:57 -0700 (PDT) Received: by 10.68.135.38 with SMTP id pp6mr4154551pbb.82.1335327837335; Tue, 24 Apr 2012 21:23:57 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.23.52 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:56 -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, Mark Brown , Ben Dooks Subject: [PATCH 26/33] ARM: S3C64XX: mach-crag6410: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:36 +0530 Message-Id: <1335327163-11794-27-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: ALoCoQlwt7R5VBcMWYbniqgjbhjemmieDs6K1Kq5tdery/3OliKqNZs8aCN7R5sU+DgiTvLpPJ72 CC: Mark Brown CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera Acked-by: Mark Brown --- arch/arm/mach-s3c64xx/mach-crag6410.c | 26 +++++--------------------- 1 files changed, 5 insertions(+), 21 deletions(-) diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c index 7dce84b..0569765 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410.c @@ -232,21 +232,10 @@ static struct platform_device crag6410_gpio_keydev = { }; static struct resource crag6410_dm9k_resource[] = { - [0] = { - .start = S3C64XX_PA_XM0CSN5, - .end = S3C64XX_PA_XM0CSN5 + 1, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = S3C64XX_PA_XM0CSN5 + (1 << 8), - .end = S3C64XX_PA_XM0CSN5 + (1 << 8) + 1, - .flags = IORESOURCE_MEM, - }, - [2] = { - .start = S3C_EINT(17), - .end = S3C_EINT(17), - .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, - }, + [0] = DEFINE_RES_MEM(S3C64XX_PA_XM0CSN5, 2), + [1] = DEFINE_RES_MEM(S3C64XX_PA_XM0CSN5 + (1 << 8), 2), + [2] = DEFINE_RES_NAMED(S3C_EINT(17), 1, NULL, IORESOURCE_IRQ \ + | IORESOURCE_IRQ_HIGHLEVEL), }; static struct dm9000_plat_data mini6410_dm9k_pdata = { @@ -262,12 +251,7 @@ static struct platform_device crag6410_dm9k_device = { }; static struct resource crag6410_mmgpio_resource[] = { - [0] = { - .name = "dat", - .start = S3C64XX_PA_XM0CSN4 + 1, - .end = S3C64XX_PA_XM0CSN4 + 1, - .flags = IORESOURCE_MEM, - }, + [0] = DEFINE_RES_MEM_NAMED(S3C64XX_PA_XM0CSN4, 1, "dat"), }; static struct platform_device crag6410_mmgpio = {