From patchwork Fri May 22 22:40:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 25485 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4MMbp0E005594 for ; Fri, 22 May 2009 22:40:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757468AbZEVWkV (ORCPT ); Fri, 22 May 2009 18:40:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757580AbZEVWkV (ORCPT ); Fri, 22 May 2009 18:40:21 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:65463 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757468AbZEVWkU (ORCPT ); Fri, 22 May 2009 18:40:20 -0400 Received: from c-67-160-239-110.hsd1.ca.comcast.net ([67.160.239.110] helo=[127.0.0.1]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1M7dPZ-0005hi-Vt; Fri, 22 May 2009 22:40:22 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 67.160.239.110 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19iBfazmzPulzEe5yACILJ6 Subject: [PATCH 2/6] ARM: OMAP2/3: Serial: Remove arch_initcall dependency To: linux-arm-kernel@lists.arm.linux.org.uk From: Tony Lindgren Cc: Vikram Pandita , linux-omap@vger.kernel.org Date: Fri, 22 May 2009 15:40:20 -0700 Message-ID: <20090522224020.31586.89346.stgit@localhost> In-Reply-To: <20090522223543.31586.44534.stgit@localhost> References: <20090522223543.31586.44534.stgit@localhost> User-Agent: StGit/0.14.3.347.g594a MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Vikram Pandita Move platform_device_register() for serial device to omap_serial_init() There is no need to have arch_initcall() dependency in serial as already board files call the function omap_serial_init() Signed-off-by: Vikram Pandita Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/serial.c | 22 +++++++++------------- 1 files changed, 9 insertions(+), 13 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 4dcf39c..3c2d325 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c @@ -98,6 +98,14 @@ void omap_serial_enable_clocks(int enable) } } +static struct platform_device serial_device = { + .name = "serial8250", + .id = PLAT8250_DEV_PLATFORM, + .dev = { + .platform_data = serial_platform_data, + }, +}; + void __init omap_serial_init(void) { int i; @@ -142,18 +150,6 @@ void __init omap_serial_init(void) omap_serial_reset(p); } -} -static struct platform_device serial_device = { - .name = "serial8250", - .id = PLAT8250_DEV_PLATFORM, - .dev = { - .platform_data = serial_platform_data, - }, -}; - -static int __init omap_init(void) -{ - return platform_device_register(&serial_device); + platform_device_register(&serial_device); } -arch_initcall(omap_init);