From patchwork Wed Apr 25 04:12:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8120 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 6EF0523E13 for ; Wed, 25 Apr 2012 04:23: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 31A43A1860D for ; Wed, 25 Apr 2012 04:23:36 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:23:36 -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=pUo0P481R2AO1NRINPb4PAlb54BgE9O/0oEZBEP88bo=; b=UNvj9RSCwlLuwj2bCiNnuViglA6koMODLfuKmqQfsUdbeEh/8FwXKzStUouR/vN6aC 8Nijg1/cp0wLSEpbi57hLqVYFjmwnWfj5LW4eMfxP2YRtRXXtHoz8M9DgVi2QCZOZXiU xpIbzGDQbRmsfGUa36fVcDMgwUieY1GSB7SHGCDAx/pxEgU5daFj84Qce5G8u4HViE8m kPjNW3eZIn0Z2OknbbfoVpwgQsqS5ptRLdDMUjOSpjQeOD4nboRJdIQqld3fu2x8gqq2 gqeOVlcoTf7fTUzk+VWYygf0HuBrW6ghscvlZHQXsVnZ7+slUhgDPVmvxMMjkv05V12M bAfg== Received: by 10.50.17.201 with SMTP id q9mr757016igd.19.1335327815986; Tue, 24 Apr 2012 21:23: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 x6csp231246ibt; Tue, 24 Apr 2012 21:23:35 -0700 (PDT) Received: by 10.68.129.197 with SMTP id ny5mr4072325pbb.141.1335327815250; Tue, 24 Apr 2012 21:23:35 -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.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:35 -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:35 -0700 (PDT) Received: by 10.68.202.167 with SMTP id kj7mr4442799pbc.9.1335327815040; Tue, 24 Apr 2012 21:23:35 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.23.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:34 -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 22/33] ARM: S3C24XX: simtec-nor: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:32 +0530 Message-Id: <1335327163-11794-23-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: ALoCoQlEbhKlQpMKvPsX0KXaPYs8q10z+HwJjtYmM87CxhJwuHg6jRCAxoUULfOvowsMu5Ju+FMa CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c24xx/simtec-nor.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-s3c24xx/simtec-nor.c b/arch/arm/mach-s3c24xx/simtec-nor.c index b9d6d4f..029744f 100644 --- a/arch/arm/mach-s3c24xx/simtec-nor.c +++ b/arch/arm/mach-s3c24xx/simtec-nor.c @@ -55,11 +55,7 @@ static struct physmap_flash_data simtec_nor_pdata = { }; static struct resource simtec_nor_resource[] = { - [0] = { - .start = S3C2410_CS1 + 0x4000000, - .end = S3C2410_CS1 + 0x4000000 + SZ_8M - 1, - .flags = IORESOURCE_MEM, - } + [0] = DEFINE_RES_MEM(S3C2410_CS1 + 0x4000000, SZ_8M), }; static struct platform_device simtec_device_nor = {