From patchwork Wed Apr 25 04:12:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8122 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 6DF8B23E13 for ; Wed, 25 Apr 2012 04:23:46 +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 29A2CA187BA for ; Wed, 25 Apr 2012 04:23:46 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:23:46 -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=QxRL/h9b9wYnjjB2g4yDj7feQj05zy6S5IbgCqsPHP0=; b=GpFSjHMNs4Lc6c1m9K2xWegodTeI5kMhF5kevwYTYbq1uONzJOfI+6++OWOLbcJiSl pnHXPskwBLijx8ykCqWXn1l22TAn5/h/aS1XKOEbR2CPeySQcH1Oqfib+UAp67nzPJc8 nzs+oERe8aOW9BfEl1wX76C/lIz8Y74gIaSWPvwJ8h9Qf3veO0z3dvR3z9oEv9Im0Tz6 D8HpF0ZxN0Ic+NaOo4KH05ujqYrTPjw9ArvovQ/dnmvri7SvMEVKxtvv66r8fCzxfgjc jH/pyDSFSS8FfZG/xqajCfznm1U6/9s6/s0mN5Lv1h47Pmhsbvn1DO8kD2k5IJt6q7OA vmvw== Received: by 10.50.207.38 with SMTP id lt6mr697663igc.55.1335327825949; Tue, 24 Apr 2012 21:23:45 -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 x6csp231258ibt; Tue, 24 Apr 2012 21:23:45 -0700 (PDT) Received: by 10.68.216.225 with SMTP id ot1mr4237172pbc.46.1335327825285; Tue, 24 Apr 2012 21:23:45 -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.23.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:45 -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:23:45 -0700 (PDT) Received: by 10.68.234.201 with SMTP id ug9mr1483931pbc.113.1335327825066; Tue, 24 Apr 2012 21:23:45 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.23.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:23:44 -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 24/33] ARM: S3C64XX: dev-uart: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:34 +0530 Message-Id: <1335327163-11794-25-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: ALoCoQkwrBkg0ncH9O+gOgEIZvGjjWHk6AvCOLXbwQ1PIyePJtv4LG3ccQa9pnYcm/vNjHsSQ9xL CC: Ben Dooks CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-s3c64xx/dev-uart.c | 48 ++++++------------------------------- 1 files changed, 8 insertions(+), 40 deletions(-) diff --git a/arch/arm/mach-s3c64xx/dev-uart.c b/arch/arm/mach-s3c64xx/dev-uart.c index c681b99..46e18d7 100644 --- a/arch/arm/mach-s3c64xx/dev-uart.c +++ b/arch/arm/mach-s3c64xx/dev-uart.c @@ -31,55 +31,23 @@ /* 64xx uarts are closer together */ static struct resource s3c64xx_uart0_resource[] = { - [0] = { - .start = S3C_PA_UART0, - .end = S3C_PA_UART0 + 0x100, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = IRQ_UART0, - .end = IRQ_UART0, - .flags = IORESOURCE_IRQ, - }, + [0] = DEFINE_RES_MEM(S3C_PA_UART0, SZ_256), + [1] = DEFINE_RES_IRQ(IRQ_UART0), }; static struct resource s3c64xx_uart1_resource[] = { - [0] = { - .start = S3C_PA_UART1, - .end = S3C_PA_UART1 + 0x100, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = IRQ_UART1, - .end = IRQ_UART1, - .flags = IORESOURCE_IRQ, - }, + [0] = DEFINE_RES_MEM(S3C_PA_UART1, SZ_256), + [1] = DEFINE_RES_IRQ(IRQ_UART1), }; static struct resource s3c6xx_uart2_resource[] = { - [0] = { - .start = S3C_PA_UART2, - .end = S3C_PA_UART2 + 0x100, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = IRQ_UART2, - .end = IRQ_UART2, - .flags = IORESOURCE_IRQ, - }, + [0] = DEFINE_RES_MEM(S3C_PA_UART2, SZ_256), + [1] = DEFINE_RES_IRQ(IRQ_UART2), }; static struct resource s3c64xx_uart3_resource[] = { - [0] = { - .start = S3C_PA_UART3, - .end = S3C_PA_UART3 + 0x100, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = IRQ_UART3, - .end = IRQ_UART3, - .flags = IORESOURCE_IRQ, - }, + [0] = DEFINE_RES_MEM(S3C_PA_UART3, SZ_256), + [1] = DEFINE_RES_IRQ(IRQ_UART3), };