From patchwork Wed Apr 25 04:12:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8102 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 DBD1523E13 for ; Wed, 25 Apr 2012 04:22:07 +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 98536A187BA for ; Wed, 25 Apr 2012 04:22:07 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:22:07 -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=fdEX3Uo3Lwa7OLmQjETRILsw0F9LG/+IIYER5TEoowk=; b=e5IhR/nCmXB7iBTJ2MS4MQc+wouro5Wb0G52h88/S+hLAzmkjo80lHVyi1r+d1w2IE yd94K8QQdjkSlgj2kzDaN3X5JSvk12WZri3QCQotv/Qoq9Q1dUEbBKLWxTu/DYKKxb66 FvoFc5Ebwdt9MkAH8bmpekBZa3QRGohsZzrdjiNwhBJ5QwF9QQDqqTHBvfmgMo93pnVQ rVYXdlX2u894B2btPR9hc9LUGWPhoafjInqhJbuOfKf6pLn5NwSPBI1L3CjUVbOfbBZr axo4MvglZU0JD7l+FevO+R2x/7oVZUbtuFxIotF85DqmuwBCOuGl4soeffVgzMFCgf1S 4bBQ== Received: by 10.50.41.201 with SMTP id h9mr12676232igl.19.1335327727397; Tue, 24 Apr 2012 21:22:07 -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 x6csp231141ibt; Tue, 24 Apr 2012 21:22:06 -0700 (PDT) Received: by 10.68.234.37 with SMTP id ub5mr881581pbc.159.1335327726646; Tue, 24 Apr 2012 21:22:06 -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.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:06 -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:06 -0700 (PDT) Received: by 10.68.221.227 with SMTP id qh3mr4241907pbc.43.1335327726358; Tue, 24 Apr 2012 21:22:06 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.22.02 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:05 -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 04/33] ARM: EXYNOS: mach-armlex4210: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:14 +0530 Message-Id: <1335327163-11794-5-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: ALoCoQmdiL2JsckYkLJ/3Q1z7HbIkUt3zT4YVoxg6HYcch5ItyfhiZw9gqSJe5Urz2k5lYuYhIzK CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-exynos/mach-armlex4210.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-exynos/mach-armlex4210.c b/arch/arm/mach-exynos/mach-armlex4210.c index 6ab171c..372e331 100644 --- a/arch/arm/mach-exynos/mach-armlex4210.c +++ b/arch/arm/mach-exynos/mach-armlex4210.c @@ -118,16 +118,9 @@ static void __init armlex4210_wlan_init(void) } static struct resource armlex4210_smsc911x_resources[] = { - [0] = { - .start = EXYNOS4_PA_SROM_BANK(3), - .end = EXYNOS4_PA_SROM_BANK(3) + SZ_64K - 1, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = IRQ_EINT(27), - .end = IRQ_EINT(27), - .flags = IORESOURCE_IRQ | IRQF_TRIGGER_HIGH, - }, + [0] = DEFINE_RES_MEM(EXYNOS4_PA_SROM_BANK(3), SZ_64K), + [1] = DEFINE_RES_NAMED(IRQ_EINT(27), 1, NULL, IORESOURCE_IRQ \ + | IRQF_TRIGGER_HIGH), }; static struct smsc911x_platform_config smsc9215_config = {