From patchwork Wed Apr 25 04:12:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8125 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 3568823E13 for ; Wed, 25 Apr 2012 04:24:03 +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 E5193A185F9 for ; Wed, 25 Apr 2012 04:24:02 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:24:02 -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=2Q2C7ZBubd9qyccdve9pH0Ngwj4eSmsMjetWqHwdFrk=; b=l2Y7G264GnXL4OXRRXYAhRyDljwcgZlvgGpfofFzJSR/wTmSqcFGHBfHnAeO9Qunoc Q/PGxdqBWpWIfKhJzzthcsC3ewiM2r4ecxjpV80vAd642CCk0p6PdrU0NvuVwoEyVSTG hInb0tEVLpz+uI8csBmt2A/dz21tmYtCw2XDgaJPSqLEzzwLKG8UXAaU8Bvy7bfEp7+R EpuLZSMjYiFAd4N5sdt9zzV21zKGp+Mx8DbrRnVW+ZQnj1rlf/fH5fBekMQBmJ+VE57C OKNxhj0LoA8D8l/C3xk5Z8YCGbyA1NMn5AHuvPq1mSnulcTOEs3yKPX4Do6ReYCt3bbl ZiXA== Received: by 10.50.185.233 with SMTP id ff9mr12560410igc.55.1335327842712; Tue, 24 Apr 2012 21:24:02 -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 x6csp231283ibt; Tue, 24 Apr 2012 21:24:02 -0700 (PDT) Received: by 10.68.138.134 with SMTP id qq6mr4374197pbb.8.1335327842073; Tue, 24 Apr 2012 21:24:02 -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.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:24:02 -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:01 -0700 (PDT) Received: by 10.68.230.130 with SMTP id sy2mr1165141pbc.11.1335327841640; Tue, 24 Apr 2012 21:24:01 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.23.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:24:01 -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 27/33] ARM: S3C64XX: mach-mini6410: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:37 +0530 Message-Id: <1335327163-11794-28-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: ALoCoQkVWb+vVI3QyFPx2EOmt5UaAYNqCZ6SC7CsIjgEBxNrWPS1SIXYepY90y12F1QK4NoPDr8W CC: Darius Augulis CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c64xx/mach-mini6410.c | 19 ++++--------------- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-s3c64xx/mach-mini6410.c b/arch/arm/mach-s3c64xx/mach-mini6410.c index c34c2ab..b2166d4 100644 --- a/arch/arm/mach-s3c64xx/mach-mini6410.c +++ b/arch/arm/mach-s3c64xx/mach-mini6410.c @@ -85,21 +85,10 @@ static struct s3c2410_uartcfg mini6410_uartcfgs[] __initdata = { /* DM9000AEP 10/100 ethernet controller */ static struct resource mini6410_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 mini6410_dm9k_pdata = {