From patchwork Wed Apr 25 04:12:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8100 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 130D523E13 for ; Wed, 25 Apr 2012 04:22:00 +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 C7C88A18860 for ; Wed, 25 Apr 2012 04:21:59 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:21:59 -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=Unmv68Hhtqi1TP8rwe03YJkg5+quCKkVf5yNx7nyqM4=; b=ARXPV+K7F5yHYHXbzRw0LLh5jElUlgH5o0Yl3wwMrKhP5ubMP0LsXnAQhAPQQ0w4e5 NsNPx6RGDnu22RNjvHopPb5NMMB3dMsfXmxF9N2koRCKGUIg1rF8nE5OLSNZHzrv1sk/ /DmYbl5wP8ZXppLXMzgEg6dNHR2sKVhP7RN19EGETI4RVvn7Hgacs58eZv8sPI+NOMMP jCVmYXDsUNTcTY6MO6RD2hU32DatNN8zn6RDzbkWbklXi3jRWZzlJ5DjTChpDEouEVnF ODpjk7jbff8iTGQ+nZnr0DSqs+LrCcMPCzGZlQMwsqzT51djMjp7FvY1EXorPUmRF2Hz rgUQ== Received: by 10.50.196.230 with SMTP id ip6mr691012igc.49.1335327719570; Tue, 24 Apr 2012 21:21:59 -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 x6csp231128ibt; Tue, 24 Apr 2012 21:21:59 -0700 (PDT) Received: by 10.68.225.104 with SMTP id rj8mr4010192pbc.135.1335327718881; Tue, 24 Apr 2012 21:21:58 -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.21.58 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:21:58 -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:21:58 -0700 (PDT) Received: by 10.68.135.40 with SMTP id pp8mr4313039pbb.13.1335327718657; Tue, 24 Apr 2012 21:21:58 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.21.55 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:21:58 -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 02/33] ARM: EXYNOS: dev-ahci: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:12 +0530 Message-Id: <1335327163-11794-3-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: ALoCoQm1/yO8D4YUYey/GlCF0Xpzm0WX0ek11mj4s7spK7plOyntUREzGWUE88J9EU4Cip9YLi57 CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-exynos/dev-ahci.c | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-exynos/dev-ahci.c b/arch/arm/mach-exynos/dev-ahci.c index 50ce5b0..ce1aad3 100644 --- a/arch/arm/mach-exynos/dev-ahci.c +++ b/arch/arm/mach-exynos/dev-ahci.c @@ -236,16 +236,8 @@ static struct ahci_platform_data exynos4_ahci_pdata = { }; static struct resource exynos4_ahci_resource[] = { - [0] = { - .start = EXYNOS4_PA_SATA, - .end = EXYNOS4_PA_SATA + SZ_64K - 1, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = EXYNOS4_IRQ_SATA, - .end = EXYNOS4_IRQ_SATA, - .flags = IORESOURCE_IRQ, - }, + [0] = DEFINE_RES_MEM(EXYNOS4_PA_SATA, SZ_64K), + [1] = DEFINE_RES_IRQ(EXYNOS4_IRQ_SATA), }; static u64 exynos4_ahci_dmamask = DMA_BIT_MASK(32);