From patchwork Wed Apr 25 04:12:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8099 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 1C4E523E13 for ; Wed, 25 Apr 2012 04:21:57 +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 CCDD5A1860D for ; Wed, 25 Apr 2012 04:21:56 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:21:56 -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=D/PG8QvSijCKadYpJqCUlvtn9WgAjDdzQmJYvZYgPgM=; b=k+mLPY/0Nh2eC0Dqzwb3TcUkJwrG8ro57SVoXGJGYZmKWynr4NF2skjW+Gjiq+W5Ex izputeIuV/D63gUP1lGJFWlZhHFK2ds3f1vdrpwNmCrKM3QHGZoGqdIF1Eg+d+3wSCVb slTLeE+bdKEnCkZq5p9J5cJrFy2O9PLe2PZafTTATUY6Nz5jW6AzWJ7kFouLPSMzJNUG q8ppWrdgVEwUFdRns9Jx2AvzKK596XY/q/ovTYZDsWh8+xaNWVurka9c+LtTdcY9oxop 1h3/880TnyA1LxDz6CQ0W7hfEvIGOFrU3Kcn7VJ07FGUqdjN/55JaubHwMp3++SL3QnU HJtw== Received: by 10.50.193.199 with SMTP id hq7mr690271igc.49.1335327716531; Tue, 24 Apr 2012 21:21:56 -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 x6csp231122ibt; Tue, 24 Apr 2012 21:21:55 -0700 (PDT) Received: by 10.68.230.6 with SMTP id su6mr4078365pbc.129.1335327715513; Tue, 24 Apr 2012 21:21:55 -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.21.55 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:21:55 -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 pbcxa12 with SMTP id xa12so1100728pbc.37 for ; Tue, 24 Apr 2012 21:21:55 -0700 (PDT) Received: by 10.68.221.74 with SMTP id qc10mr4144136pbc.80.1335327715050; Tue, 24 Apr 2012 21:21:55 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.21.50 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:21:54 -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 Subject: [PATCH 01/33] ARM: SAMSUNG: devs: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:11 +0530 Message-Id: <1335327163-11794-2-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: ALoCoQlG8NIOLDKYHwCAWLacDLydr7g+2H/4IydpyTV3RKavu2exiZTQV4Cjybp7WU8weU90GRfW CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/plat-samsung/devs.c | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index db32ec5..1013a34 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c @@ -272,16 +272,8 @@ struct platform_device s5p_device_fimc3 = { #ifdef CONFIG_S5P_DEV_G2D static struct resource s5p_g2d_resource[] = { - [0] = { - .start = S5P_PA_G2D, - .end = S5P_PA_G2D + SZ_4K - 1, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = IRQ_2D, - .end = IRQ_2D, - .flags = IORESOURCE_IRQ, - }, + [0] = DEFINE_RES_MEM(S5P_PA_G2D, SZ_4K), + [1] = DEFINE_RES_IRQ(IRQ_2D), }; struct platform_device s5p_device_g2d = {