From patchwork Wed Apr 25 04:12:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8123 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 17F8023E13 for ; Wed, 25 Apr 2012 04:23:54 +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 CE76BA187BA for ; Wed, 25 Apr 2012 04:23:53 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:23:53 -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=STWqKNKMmSBCTxiSP+NMAJmSLePpTatnK80z46WR5aw=; b=e7LjnCaWUZWSrxvAim27+dDe64z/BKxicvGUaqLJc86T48ZmsIWy7g3AbkfUeNmsDh oU1sEukyuNE2eDmiZ+sh8z1+E3O9rx3yCyDGNWhpe/OlGjkf20tUeGGALX1AHeLYwW9A lA9n1F24+0csHAYaYX36wmAOa5yk5qftzl8LDExX/aZHAEMzyDg2HRF6U1vK66/nwVNl lkLo0m9ZjJK8A4RqcjNPYzvwS55rDLlcPN6whMXH2/e5PdJyExdLtGBa3xMfYTmzH/oW +kg3OpyaOeerx6cYerLyaArISbuR5RhHARmaV94fou/cCykFseB0IrDtBdtkh3MhAbxt ZUsw== Received: by 10.50.154.167 with SMTP id vp7mr697209igb.55.1335327833564; Tue, 24 Apr 2012 21:23:53 -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 x6csp231273ibt; Tue, 24 Apr 2012 21:23:53 -0700 (PDT) Received: by 10.68.129.130 with SMTP id nw2mr207173pbb.133.1335327832904; Tue, 24 Apr 2012 21:23:52 -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.52 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:52 -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:52 -0700 (PDT) Received: by 10.68.189.106 with SMTP id gh10mr2077638pbc.85.1335327832574; Tue, 24 Apr 2012 21:23:52 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.23.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:51 -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, Kwangwoo Lee , Ben Dooks Subject: [PATCH 25/33] ARM: S3C64XX: mach-anw6410: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:35 +0530 Message-Id: <1335327163-11794-26-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: ALoCoQm0ji+o8er/wr22GFL+aaV6MuQ81J7dHDTdZP6RVrm71WJT4xBQUaiW9Rc4gGhFpaeT8oZH CC: Kwangwoo Lee CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c64xx/mach-anw6410.c | 19 ++++--------------- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-s3c64xx/mach-anw6410.c b/arch/arm/mach-s3c64xx/mach-anw6410.c index b86f277..f252691 100644 --- a/arch/arm/mach-s3c64xx/mach-anw6410.c +++ b/arch/arm/mach-s3c64xx/mach-anw6410.c @@ -165,21 +165,10 @@ static void __init anw6410_dm9000_enable(void) } static struct resource anw6410_dm9000_resource[] = { - [0] = { - .start = ANW6410_PA_DM9000, - .end = ANW6410_PA_DM9000 + 3, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = ANW6410_PA_DM9000 + 4, - .end = ANW6410_PA_DM9000 + 4 + 500, - .flags = IORESOURCE_MEM, - }, - [2] = { - .start = IRQ_EINT(15), - .end = IRQ_EINT(15), - .flags = IORESOURCE_IRQ | IRQF_TRIGGER_HIGH, - }, + [0] = DEFINE_RES_MEM(ANW6410_PA_DM9000, 4), + [1] = DEFINE_RES_MEM(ANW6410_PA_DM9000 + 4, 501), + [2] = DEFINE_RES_NAMED(IRQ_EINT(15), 1, NULL, IORESOURCE_IRQ \ + | IRQF_TRIGGER_HIGH), }; static struct dm9000_plat_data anw6410_dm9000_pdata = {