From patchwork Thu Apr 5 04:28:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 7650 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 7024D23E4C for ; Thu, 5 Apr 2012 04:36:36 +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 21289A18580 for ; Thu, 5 Apr 2012 04:36:35 +0000 (UTC) Received: by iage36 with SMTP id e36so1757564iag.11 for ; Wed, 04 Apr 2012 21:36:35 -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:x-gm-message-state; bh=KWc2ziVUFOLiTTBLRWNWqhC6Uvv4pcj+w325gbmHhWg=; b=KM9IoJJVWD1iGUzjoGIC3j5IRxyJOWbXv23IQZMODPr5dnVriL6KXJXpYNLaH5j12g SVeCPyY9cAJN8hTIBwZqpJQ+X+cJ4ynmccS5dK960pNeDb8itYvIHLTnk9nQkpbKNp0W NSJOEr1DAFc/v0DclnDPl39s/rRxHUL0wS5zwsO9yWPeHeAjGHALSIy+wZqcHi9yxJpS tYLxSunToZhkYRq+81Tr/gxpbkDIT2rUtZN4TMFeGmBbdcmxwy4kZPVJLrT2a8OYL1kH mPbSsjIe84eOZLAYGEAO1VeBHTMOIL6E0nmUazw6Ox6kEOF587aTRzf2xFYXap7kkSjy 3wZA== Received: by 10.50.156.229 with SMTP id wh5mr3650211igb.28.1333600595436; Wed, 04 Apr 2012 21:36:35 -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.164.217 with SMTP id f25csp16713iby; Wed, 4 Apr 2012 21:36:35 -0700 (PDT) Received: by 10.68.213.230 with SMTP id nv6mr3737734pbc.69.1333600594718; Wed, 04 Apr 2012 21:36:34 -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 s4si3236279pbn.229.2012.04.04.21.36.34 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 21:36:34 -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 xa12so1232623pbc.37 for ; Wed, 04 Apr 2012 21:36:34 -0700 (PDT) Received: by 10.68.201.65 with SMTP id jy1mr3886024pbc.5.1333600594459; Wed, 04 Apr 2012 21:36:34 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id d3sm2131905pbq.9.2012.04.04.21.36.30 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 21:36:33 -0700 (PDT) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, patches@linaro.org Subject: [PATCH] ARM: SAMSUNG: Use DEFINE_RES_xxx macros for G2D resources Date: Thu, 5 Apr 2012 09:58:25 +0530 Message-Id: <1333600105-28524-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQn2j0jufyblWBlUnsrqDqejhbp6BNxBWpjTxeG22gFb2Ctt434RwA34NbHP4RfR0fXlUB1l 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 = {