From patchwork Wed Apr 25 04:12:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8131 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 2755B23E42 for ; Wed, 25 Apr 2012 04:24:32 +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 DE73CA1860D for ; Wed, 25 Apr 2012 04:24:31 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:24:31 -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=9ZYQyMBNH/h358NLyswuihOTR6DaaWl3o2y4/h6Yjz8=; b=IRWIGAARe9Mres+7ntJ4bW+LKauwK6e4VfJtdtvgYclCJ8i2QaqLyUOKGZLueG3ot1 KJciE2jjmUNmZifH1s5qhPZLiyFE5owPzcO0elAjDDGF7CrclAyv5bKFFGgnLttfSAl5 2Iuk2nyP1jEAvVpZim0QFz8VepquvDLMl17lLPDMwvEge30XFqP10OfIhh3sNZYsubBe YeN8Kq7zauCuSi3ZscK4J1UV9/WFEhw8BA6L6/FwqLrQKtgjpz6Mb9Iar1slEUrVJIb8 uLgWUIyH4dRkREwM5+QK/c6/WbrFsCzVW5i9KXSfSk06mQEsIjGozECK+etCzOtbyOlB jjgw== Received: by 10.42.19.72 with SMTP id a8mr576349icb.39.1335327871689; Tue, 24 Apr 2012 21:24:31 -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 x6csp231323ibt; Tue, 24 Apr 2012 21:24:31 -0700 (PDT) Received: by 10.68.212.163 with SMTP id nl3mr4048722pbc.112.1335327871071; Tue, 24 Apr 2012 21:24:31 -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.30 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:24:31 -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:30 -0700 (PDT) Received: by 10.68.225.198 with SMTP id rm6mr4148997pbc.89.1335327870875; Tue, 24 Apr 2012 21:24:30 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.24.26 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:24:30 -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 Subject: [PATCH 33/33] ARM: S5PV210: mach-smdkv210: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:43 +0530 Message-Id: <1335327163-11794-34-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: ALoCoQlyBthT2mzi35AzAMAUOoHDGBUGClX4Vjiqs5o+QERkqdbmHOjBKXGK2q6GVySX3ghvEIQV CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s5pv210/mach-smdkv210.c | 19 ++++--------------- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index 91d4ad8..fa1b612 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c @@ -119,21 +119,10 @@ static struct samsung_keypad_platdata smdkv210_keypad_data __initdata = { }; static struct resource smdkv210_dm9000_resources[] = { - [0] = { - .start = S5PV210_PA_SROM_BANK5, - .end = S5PV210_PA_SROM_BANK5, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = S5PV210_PA_SROM_BANK5 + 2, - .end = S5PV210_PA_SROM_BANK5 + 2, - .flags = IORESOURCE_MEM, - }, - [2] = { - .start = IRQ_EINT(9), - .end = IRQ_EINT(9), - .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, - }, + [0] = DEFINE_RES_MEM(S5PV210_PA_SROM_BANK5, 1), + [1] = DEFINE_RES_MEM(S5PV210_PA_SROM_BANK5 + 2, 1), + [2] = DEFINE_RES_NAMED(IRQ_EINT(9), 1, NULL, IORESOURCE_IRQ \ + | IORESOURCE_IRQ_HIGHLEVEL), }; static struct dm9000_plat_data smdkv210_dm9000_platdata = {