From patchwork Wed Apr 25 04:12:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8110 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 9CE8823E13 for ; Wed, 25 Apr 2012 04:22:45 +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 5FC95A187BA for ; Wed, 25 Apr 2012 04:22:45 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:22:45 -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=biv2CYJZRYstLmaIEh/+8uJO96U13Npx9JoeuX/2gqI=; b=K1oMYJ4aaBz20U/e4wwN/CQDXRk5zERAWJhwptA/SLVUSJimVC89SGmTMp68+t+hwQ JvajKGlDtrVguxf6plRH/VCQbACYRpS6zMCQfnwF+VO1Gd+g1IypDDrRdfSQA+N4CYX3 OtEkq/I7O1FwoN2I8bjD548vy95OPPny7KLYmolStHs0DZ6Zk9Uzf3BCVGfRNQGVrYMv cAMcPCaWAAnT+YbCPP6BukJwv9NuKxWFn2Eu1tlgPYwi+hxyFcjuUjiFgDd9p0sjhuU2 n8kjNsYOzgmhIpYuFJ0zl5+7RbsTwiGupNTZddA6+OMdQJRis3fxrUxIis1CE8RuJ6Lm i3gQ== Received: by 10.50.194.163 with SMTP id hx3mr629019igc.49.1335327765164; Tue, 24 Apr 2012 21:22:45 -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 x6csp231184ibt; Tue, 24 Apr 2012 21:22:44 -0700 (PDT) Received: by 10.68.234.37 with SMTP id ub5mr886454pbc.159.1335327764498; Tue, 24 Apr 2012 21:22:44 -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.22.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:44 -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:22:44 -0700 (PDT) Received: by 10.68.224.228 with SMTP id rf4mr4303971pbc.22.1335327764292; Tue, 24 Apr 2012 21:22:44 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.22.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:43 -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, Nelson Castillo , Ben Dooks Subject: [PATCH 12/33] ARM: S3C24XX: mach-gta02: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:22 +0530 Message-Id: <1335327163-11794-13-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: ALoCoQnFYYhiSH4/3tKWZL1iPJeMxihM147Re3geu/sDjx2+0eIBpdupNUYnkyHiEgunK4nyEbt8 CC: Nelson Castillo CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c24xx/mach-gta02.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-s3c24xx/mach-gta02.c b/arch/arm/mach-s3c24xx/mach-gta02.c index ba5d853..0f29f64a 100644 --- a/arch/arm/mach-s3c24xx/mach-gta02.c +++ b/arch/arm/mach-s3c24xx/mach-gta02.c @@ -387,11 +387,8 @@ static struct physmap_flash_data gta02_nor_flash_data = { .width = 2, }; -static struct resource gta02_nor_flash_resource = { - .start = GTA02_FLASH_BASE, - .end = GTA02_FLASH_BASE + GTA02_FLASH_SIZE - 1, - .flags = IORESOURCE_MEM, -}; +static struct resource gta02_nor_flash_resource = + DEFINE_RES_MEM(GTA02_FLASH_BASE, GTA02_FLASH_SIZE); static struct platform_device gta02_nor_flash = { .name = "physmap-flash",