From patchwork Wed Apr 25 04:12:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8118 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 4DAF723E13 for ; Wed, 25 Apr 2012 04:23:25 +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 0A3ABA185F9 for ; Wed, 25 Apr 2012 04:23:24 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:23:24 -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=FPt3/i2/JMbtnX6JJHjp7WWfV/yQH6rX+sL1XxlZpGU=; b=Gabe1Xb3FSsHudgewbiJot8ityyjQ0Pmt8OI83G7D8b31gFJv/fvu8OIw5l3nB/5fD zMMHH/Q8jQYGsBLHfESeC31CS7U9yS4GAXOE3QSRXXurQ0yEuM7Uta3Tjo3Pbk/yGKfp n+Oph31F5MX9FBVczye/wXPyM6M/r1NvZm3XfYE2auy/ZZtcXS4mVBpcHzuexKSmxa0x W94KaSvdchP7R04jGqfg+gHgpMZzMJduF3vf6BspNUMk+IqRKKy/tJ6E6WOuw3/uL6nZ CF/x7Ctz7kySy6BF0Y/deM1Qn+dPzfkVHP60mM5+K+jQBmemUtELjBK26Nj6DdHRJatB prGw== Received: by 10.50.193.199 with SMTP id hq7mr692622igc.49.1335327804830; Tue, 24 Apr 2012 21:23:24 -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 x6csp231234ibt; Tue, 24 Apr 2012 21:23:24 -0700 (PDT) Received: by 10.68.223.234 with SMTP id qx10mr3976572pbc.154.1335327804182; Tue, 24 Apr 2012 21:23:24 -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.23.24 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:24 -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:23:24 -0700 (PDT) Received: by 10.68.189.106 with SMTP id gh10mr2074087pbc.85.1335327803972; Tue, 24 Apr 2012 21:23:23 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.23.19 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:23 -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 20/33] ARM: S3C24XX: mach-tct_hammer: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:30 +0530 Message-Id: <1335327163-11794-21-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: ALoCoQnv1S7fwlompBDHlMK3ZoxS1H0yjkMLrh5jVOuskfiWNm8dknXTpS4RZ4Aelg45tKl2yIfv CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c24xx/mach-tct_hammer.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-s3c24xx/mach-tct_hammer.c b/arch/arm/mach-s3c24xx/mach-tct_hammer.c index 1114666..fe99028 100644 --- a/arch/arm/mach-s3c24xx/mach-tct_hammer.c +++ b/arch/arm/mach-s3c24xx/mach-tct_hammer.c @@ -56,11 +56,8 @@ #include "common.h" -static struct resource tct_hammer_nor_resource = { - .start = 0x00000000, - .end = 0x01000000 - 1, - .flags = IORESOURCE_MEM, -}; +static struct resource tct_hammer_nor_resource = + DEFINE_RES_MEM(0x00000000, SZ_16M); static struct mtd_partition tct_hammer_mtd_partitions[] = { {