All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: linux-arm-kernel@lists.arm.linux.org.uk
Cc: Vikram Pandita <vikram.pandita@ti.com>, linux-omap@vger.kernel.org
Subject: [PATCH 2/6] ARM: OMAP2/3: Serial: Remove arch_initcall dependency
Date: Fri, 22 May 2009 15:40:20 -0700	[thread overview]
Message-ID: <20090522224020.31586.89346.stgit@localhost> (raw)
In-Reply-To: <20090522223543.31586.44534.stgit@localhost>

From: Vikram Pandita <vikram.pandita@ti.com>

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 <vikram.pandita@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/mach-omap2/serial.c |   22 +++++++++-------------
 1 files changed, 9 insertions(+), 13 deletions(-)

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);


  parent reply	other threads:[~2009-05-22 22:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-22 22:37 [PATCH 0/6] Updates for omap3 for merge window after 2.6.30 Tony Lindgren
2009-05-22 22:39 ` [PATCH 1/6] ARM: OMAP2/3: Remove L4_WK_OMAP_BASE, L4_PER_OMAP_BASE, L4_EMU_BASE, L3_OMAP_BASE Tony Lindgren
2009-05-22 22:40 ` Tony Lindgren [this message]
2009-05-22 22:41 ` [PATCH 3/6] ARM: OMAP3: SDRC: add timing data for Micron MT46H32M32LF-6 Tony Lindgren
2009-05-23  2:02   ` [PATCH 3/6] ARM: OMAP3: SDRC: add timing data for Micron MT46H32M32LF-6, v2 Tony Lindgren
2009-05-22 22:42 ` [PATCH 4/6] ARM: OMAP3: SDRC: add timing data for Qimonda HYB18M512160AF-6 Tony Lindgren
2009-05-22 22:44 ` [PATCH 5/6] ARM: OMAP3: ZOOM MDK: Add FB support to board file Tony Lindgren
2009-05-22 22:45 ` [PATCH 6/6] ARM: OMAP3: Initialize more devices for LDP Tony Lindgren
2009-05-25 12:59   ` Russell King - ARM Linux
2009-05-25 13:20     ` Mark Brown
2009-05-26 23:31 ` [PATCH 0/6] Updates for omap3 for merge window after 2.6.30 Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090522224020.31586.89346.stgit@localhost \
    --to=tony@atomide.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-omap@vger.kernel.org \
    --cc=vikram.pandita@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.