From patchwork Wed Apr 25 04:12:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8108 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 05E2023E13 for ; Wed, 25 Apr 2012 04:22:36 +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 BBE2DA187BA for ; Wed, 25 Apr 2012 04:22:35 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:22:35 -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=mir67/Jm0djGM756nvhuBOK4BJOvAhcOrH6py3uM+xU=; b=KZkitQfyi8a/HeDPf4hazlvHtZH+6Eh9FGCpDSSUFVZg5LhCHeMmr8l4A/29cdOdeV Ns8ZG6JrpWv/ZaS2XaBlkO30CFIHbUzjRMBh/SKHzR39NKIKSDCBhdiPZiAN5ZzLdFld QP3ykquodL4ItvFXa0R6e6F5kUf1Pt6MCD8YK4ec4JLWsShBttU/DoxT34GANx9ATF5I Ni3f2kPOzdvdXeDxwau74evT87YJyTwfiaRUM6VdJrJkE0zKsSjQI0vu86d5y4/EkJj0 k9H21mb/i8hGLay8lDKqCGdKNE4N3rQkLGGUpbRAcZ9TWNb0JaUMVeDs7nxjoRH3Jrkn RqKQ== Received: by 10.50.185.233 with SMTP id ff9mr12558145igc.55.1335327755502; Tue, 24 Apr 2012 21:22:35 -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 x6csp231177ibt; Tue, 24 Apr 2012 21:22:35 -0700 (PDT) Received: by 10.68.204.39 with SMTP id kv7mr3450417pbc.155.1335327754757; Tue, 24 Apr 2012 21:22:34 -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.22.34 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:34 -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:22:34 -0700 (PDT) Received: by 10.68.237.71 with SMTP id va7mr4200519pbc.51.1335327754497; Tue, 24 Apr 2012 21:22:34 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.22.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:33 -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 10/33] ARM: S3C24XX: mach-at2440evb: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:20 +0530 Message-Id: <1335327163-11794-11-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: ALoCoQnpfix3OKbE9hiBlBUAmQbVrCJ81AJEml9Js1CZd6UzTFtzPNxYHWu4wbGto8D7Dka1cCBU CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c24xx/mach-at2440evb.c | 19 ++++--------------- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-s3c24xx/mach-at2440evb.c b/arch/arm/mach-s3c24xx/mach-at2440evb.c index d7ae49c..7a05abf 100644 --- a/arch/arm/mach-s3c24xx/mach-at2440evb.c +++ b/arch/arm/mach-s3c24xx/mach-at2440evb.c @@ -118,21 +118,10 @@ static struct s3c2410_platform_nand __initdata at2440evb_nand_info = { /* DM9000AEP 10/100 ethernet controller */ static struct resource at2440evb_dm9k_resource[] = { - [0] = { - .start = S3C2410_CS3, - .end = S3C2410_CS3 + 3, - .flags = IORESOURCE_MEM - }, - [1] = { - .start = S3C2410_CS3 + 4, - .end = S3C2410_CS3 + 7, - .flags = IORESOURCE_MEM - }, - [2] = { - .start = IRQ_EINT7, - .end = IRQ_EINT7, - .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, - } + [0] = DEFINE_RES_MEM(S3C2410_CS3, 4), + [1] = DEFINE_RES_MEM(S3C2410_CS3 + 4, 4), + [2] = DEFINE_RES_NAMED(IRQ_EINT7, 1, NULL, IORESOURCE_IRQ \ + | IORESOURCE_IRQ_HIGHEDGE), }; static struct dm9000_plat_data at2440evb_dm9k_pdata = {