From patchwork Wed Apr 25 04:12:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8106 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 CD11F23E13 for ; Wed, 25 Apr 2012 04:22:26 +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 89979A1860D for ; Wed, 25 Apr 2012 04:22:26 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:22:26 -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=/8nsX3X3sgfTLVHIZOQdLKSZcUy5gGGpMhF6E+TdOcw=; b=WjHVS5F6Wsu2aT165Cc0lL8B3iToglz8wMzxOJPnh5a7L/2ptix4xz2gc1SD1Jav2w 3oLoTwxEOcpvetP6dvNuN+X/+IpJd5GKuCYF560zVkDPECXsnUOWWl5VY4bvng/6zfsy aX7xTOWU7gF4RkeSG+aRELidBLEbpggWiSiaTzwmCKlqEV+w9sCszMvPgVtTvvMlxcQx rFE2CHMzqlv6cFRYGCcrWf9ceNaZzJa5Xzml6lp4lvaH7BicFBDgoWZt91EqfdWCSLGw HmiOHnDTUXCqYZFtP8hj2v1v4I9JLMPj0WOUYsBbS19zw28tN7LNQGYd+zA6jn92Mq+r DNnA== Received: by 10.42.80.19 with SMTP id t19mr556330ick.55.1335327746344; Tue, 24 Apr 2012 21:22:26 -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 x6csp231168ibt; Tue, 24 Apr 2012 21:22:25 -0700 (PDT) Received: by 10.68.237.71 with SMTP id va7mr4199366pbc.51.1335327745071; Tue, 24 Apr 2012 21:22:25 -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.24 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:25 -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:24 -0700 (PDT) Received: by 10.68.194.72 with SMTP id hu8mr4292623pbc.26.1335327744649; Tue, 24 Apr 2012 21:22:24 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.22.20 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:24 -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 08/33] ARM: S3C24XX: mach-amlm5900: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:18 +0530 Message-Id: <1335327163-11794-9-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: ALoCoQnQx+432nqHp3y/wv0xfi3amewvpGI0d+Xytm1m6DDW0o8X+JrjEfh8Ub/fbSLTxmc8K54G CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c24xx/mach-amlm5900.c | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-s3c24xx/mach-amlm5900.c b/arch/arm/mach-s3c24xx/mach-amlm5900.c index 4220cc6..ea2c4b0 100644 --- a/arch/arm/mach-s3c24xx/mach-amlm5900.c +++ b/arch/arm/mach-s3c24xx/mach-amlm5900.c @@ -65,13 +65,8 @@ #include "common.h" -static struct resource amlm5900_nor_resource = { - .start = 0x00000000, - .end = 0x01000000 - 1, - .flags = IORESOURCE_MEM, -}; - - +static struct resource amlm5900_nor_resource = + DEFINE_RES_MEM(0x00000000, SZ_16M); static struct mtd_partition amlm5900_mtd_partitions[] = { {