From patchwork Wed Apr 25 04:12:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8111 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 6DD6C23E13 for ; Wed, 25 Apr 2012 04:22:50 +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 2A940A1860D for ; Wed, 25 Apr 2012 04:22:50 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:22:50 -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=psfugufTc1uFBEz7AEU/hJj45m3Qu+dta/0mdGq+x+w=; b=mF1t1xmEyBefU+cEG1pV5lrdnui4aWFg8uJxKx6wgBFiqOnC7BY7zatmZ642246FZU xGgh10F5yWxugLSQxzL6orY/VJ1DvuBp5oQdiZuUwG+O/i6RNWD4DlY6r4bRS8hEw1J7 I7KzQLvnwZRWi4u3SHFK8dHp3ZPY3/1QczK8e9SzaxZEW7GDEa7VfoPCxkioePfSqFTW uNCKrFCPqLtRU4HLwbpRgzJTfH1Vybmp3e8YElA/HEtqS/dRhZTfX0OzWQWlHGnhEe5v tTE6m9ZkAhI8HGTgW0wE/8S8qtmVoKhl1Cf8Ga3/5dIhmCuWR3E150L+/wrfaWzX7dMU uYZQ== Received: by 10.50.41.201 with SMTP id h9mr12677384igl.19.1335327769953; Tue, 24 Apr 2012 21:22:49 -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 x6csp231189ibt; Tue, 24 Apr 2012 21:22:49 -0700 (PDT) Received: by 10.68.220.2 with SMTP id ps2mr4141126pbc.109.1335327769167; Tue, 24 Apr 2012 21:22:49 -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.22.49 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:49 -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:22:49 -0700 (PDT) Received: by 10.68.219.226 with SMTP id pr2mr1578571pbc.66.1335327768958; Tue, 24 Apr 2012 21:22:48 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.22.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:48 -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 13/33] ARM: S3C24XX: mach-h1940: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:23 +0530 Message-Id: <1335327163-11794-14-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: ALoCoQmSWu/GBaKhMxfamxbwYjY/Rzl10pgoLy59s+m2d7p3DVuw194zCu1OdrydzhAlvL5urGLL CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c24xx/mach-h1940.c | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-s3c24xx/mach-h1940.c b/arch/arm/mach-s3c24xx/mach-h1940.c index 6b21ba1..bb8d008 100644 --- a/arch/arm/mach-s3c24xx/mach-h1940.c +++ b/arch/arm/mach-s3c24xx/mach-h1940.c @@ -253,13 +253,8 @@ static struct pda_power_pdata power_supply_info = { }; static struct resource power_supply_resources[] = { - [0] = { - .name = "ac", - .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE | - IORESOURCE_IRQ_HIGHEDGE, - .start = IRQ_EINT2, - .end = IRQ_EINT2, - }, + [0] = DEFINE_RES_NAMED(IRQ_EINT2, 1, "ac", IORESOURCE_IRQ \ + | IORESOURCE_IRQ_LOWEDGE | IORESOURCE_IRQ_HIGHEDGE), }; static struct platform_device power_supply = {