From patchwork Wed Apr 25 04:12:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8115 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 6113223E13 for ; Wed, 25 Apr 2012 04:23:10 +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 18A8BA185F9 for ; Wed, 25 Apr 2012 04:23:09 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:23:09 -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=jye0AbJ3ETQKb4FJNqlG/vROGXLIMm9d1lr/W9M0qVc=; b=HhNoWpx5gWo9cJRUy4CFyShHtnYM04n6tAHWCK6br5O4mWh/13LA3G/UnTbWZU8sAH Q/oGtkvE18jZqMH24ZJLdFUSAnC2MyxFyTUEDxCakyMdgV40wULayC0VdhmfLQNyNJOA pASzdPrif7RETaOj6WBsl7G23KqUHoWUiF1eH8xn2afYSPD4g4on6MiR/dfddxH+HNKt cDAH0+9YCgWAs69fAtHtX+iHgfUcXjpBuK+O9cODtSlqOrGX36O8SpWWqbYskgH6L5Gf G406zs2V6Zs5vLrVT2G5npUtIVi9eK8ujIZhzPQyA6DxNAI8/q09RJxnyCJZEIMfuXPn gabQ== Received: by 10.50.135.36 with SMTP id pp4mr753490igb.19.1335327789843; Tue, 24 Apr 2012 21:23:09 -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 x6csp231216ibt; Tue, 24 Apr 2012 21:23:09 -0700 (PDT) Received: by 10.68.220.2 with SMTP id ps2mr4143577pbc.109.1335327789228; Tue, 24 Apr 2012 21:23:09 -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.09 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:09 -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:09 -0700 (PDT) Received: by 10.68.240.135 with SMTP id wa7mr4351493pbc.7.1335327789011; Tue, 24 Apr 2012 21:23:09 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.23.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:08 -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, Guillaume GOURAT , Ben Dooks Subject: [PATCH 17/33] ARM: S3C24XX: mach-otom: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:27 +0530 Message-Id: <1335327163-11794-18-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: ALoCoQliam2XvfgPyJrdGcJ5dOpFRoY8pa89nuKpbffoNAACrSgzhUhI2V8Oj6DP5grE7u+fyBt8 CC: Guillaume GOURAT CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c24xx/mach-otom.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-s3c24xx/mach-otom.c b/arch/arm/mach-s3c24xx/mach-otom.c index 5f1e0ee..bc4b6ef 100644 --- a/arch/arm/mach-s3c24xx/mach-otom.c +++ b/arch/arm/mach-s3c24xx/mach-otom.c @@ -77,11 +77,7 @@ static struct s3c2410_uartcfg otom11_uartcfgs[] __initdata = { /* NOR Flash on NexVision OTOM board */ static struct resource otom_nor_resource[] = { - [0] = { - .start = S3C2410_CS0, - .end = S3C2410_CS0 + (4*1024*1024) - 1, - .flags = IORESOURCE_MEM, - } + [0] = DEFINE_RES_MEM(S3C2410_CS0, SZ_4M), }; static struct platform_device otom_device_nor = {