From patchwork Wed Apr 25 04:12:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8114 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 F2E5E23E13 for ; Wed, 25 Apr 2012 04:23:05 +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 AE103A185F9 for ; Wed, 25 Apr 2012 04:23:05 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:23:05 -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=vQTXDU187QDr6Vap/1GQJ7dKq9IJqFpt/t80DS0wOL8=; b=BX5pp3J4LC5gPBh1lUHYcswXxlKyfmwc2VUyzQU3ZD+C3o43O1leMKWfklE255s5ct pknWySSkIrqBIMjqsx6gsNw2xwCwQXSmeR1bhxGH+8siKWZTRJhG/LyyrtQuYHRXywHc 9MoZPiPAlOH9dS0p2drwzhQvoRMbxVQMdPXTJJ2TZnTFDrsWHBUP4fUfKz9H7DC3ug28 Rr2p9tJfWxZF+WFf1XeeuO7cUMjf1umVSJB7SeYnj7jLRBLuEQeFY6tmc4z8BhBpOxUc 2apk6yzclxwGv2GOikH4MlER2s4E4ZPj12Rs0gj6HdOjZg8W25mHjNv1uAW6qldX69Jk qWwg== Received: by 10.50.183.225 with SMTP id ep1mr8718303igc.1.1335327785474; Tue, 24 Apr 2012 21:23:05 -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 x6csp231211ibt; Tue, 24 Apr 2012 21:23:05 -0700 (PDT) Received: by 10.68.130.40 with SMTP id ob8mr4209190pbb.84.1335327784870; Tue, 24 Apr 2012 21:23:04 -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.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:04 -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:04 -0700 (PDT) Received: by 10.68.130.130 with SMTP id oe2mr3929933pbb.160.1335327784577; Tue, 24 Apr 2012 21:23:04 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.22.59 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:03 -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 16/33] ARM: S3C24XX: mach-osiris: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:26 +0530 Message-Id: <1335327163-11794-17-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: ALoCoQmed2wnhFD4xqSOoq43yWdAJx+qXePLArtM45docSW05T6BJ2jSYuJUz3Bgu4S6/erXTMum CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c24xx/mach-osiris.c | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-s3c24xx/mach-osiris.c b/arch/arm/mach-s3c24xx/mach-osiris.c index c5daeb6..95d0772 100644 --- a/arch/arm/mach-s3c24xx/mach-osiris.c +++ b/arch/arm/mach-s3c24xx/mach-osiris.c @@ -244,16 +244,8 @@ static struct s3c2410_platform_nand __initdata osiris_nand_info = { /* PCMCIA control and configuration */ static struct resource osiris_pcmcia_resource[] = { - [0] = { - .start = 0x0f000000, - .end = 0x0f100000, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = 0x0c000000, - .end = 0x0c100000, - .flags = IORESOURCE_MEM, - } + [0] = DEFINE_RES_MEM(0x0f000000, SZ_1M), + [1] = DEFINE_RES_MEM(0x0c000000, SZ_1M), }; static struct platform_device osiris_pcmcia = {