linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: stigge@antcom.de (Roland Stigge)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 10/10] ARM: LPC32xx: Move common code to common.c
Date: Thu, 19 Apr 2012 15:00:15 +0200	[thread overview]
Message-ID: <1334840415-14287-11-git-send-email-stigge@antcom.de> (raw)
In-Reply-To: <1334840415-14287-1-git-send-email-stigge@antcom.de>

This patch moves non-boardspecific LPC32xx code to common.c

Signed-off-by: Roland Stigge <stigge@antcom.de>

---
 arch/arm/mach-lpc32xx/common.c  |   13 +++++++++++++
 arch/arm/mach-lpc32xx/phy3250.c |   13 -------------
 2 files changed, 13 insertions(+), 13 deletions(-)

--- linux-2.6.orig/arch/arm/mach-lpc32xx/common.c
+++ linux-2.6/arch/arm/mach-lpc32xx/common.c
@@ -223,3 +223,16 @@ void lpc23xx_restart(char mode, const ch
 	while (1)
 		;
 }
+
+static int __init lpc32xx_display_uid(void)
+{
+	u32 uid[4];
+
+	lpc32xx_get_uid(uid);
+
+	printk(KERN_INFO "LPC32XX unique ID: %08x%08x%08x%08x\n",
+		uid[3], uid[2], uid[1], uid[0]);
+
+	return 1;
+}
+arch_initcall(lpc32xx_display_uid);
--- linux-2.6.orig/arch/arm/mach-lpc32xx/phy3250.c
+++ linux-2.6/arch/arm/mach-lpc32xx/phy3250.c
@@ -310,19 +310,6 @@ static void __init lpc3250_machine_init(
 			SPI0_CS_GPIO);
 }
 
-static int __init lpc32xx_display_uid(void)
-{
-	u32 uid[4];
-
-	lpc32xx_get_uid(uid);
-
-	printk(KERN_INFO "LPC32XX unique ID: %08x%08x%08x%08x\n",
-		uid[3], uid[2], uid[1], uid[0]);
-
-	return 1;
-}
-arch_initcall(lpc32xx_display_uid);
-
 static char const *lpc32xx_dt_compat[] __initdata = {
 	"nxp,lpc32xx",
 	NULL

      parent reply	other threads:[~2012-04-19 13:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19 13:00 [PATCH v4 0/10] Second patchset for LPC32xx device tree conversion Roland Stigge
2012-04-19 13:00 ` [PATCH v4 1/10] ohci-nxp: Driver cleanup Roland Stigge
2012-04-19 13:00 ` [PATCH v4 2/10] ohci-nxp: Device tree support Roland Stigge
2012-04-19 13:00 ` [PATCH v4 3/10] ARM: LPC32xx: clock.c cleanup Roland Stigge
2012-04-19 13:00 ` [PATCH v4 4/10] ARM: LPC32xx: clock.c dma adjustment Roland Stigge
2012-04-19 13:00 ` [PATCH v4 5/10] ARM: LPC32xx: Remove obsolete platform Kconfig Roland Stigge
2012-04-19 13:00 ` [PATCH v4 6/10] input: Device tree support for LPC32xx touchscreen Roland Stigge
2012-04-21  6:39   ` Dmitry Torokhov
2012-04-19 13:00 ` [PATCH v4 7/10] iio: lpc32xx-adc: Remove driver conflict due to device tree Roland Stigge
2012-04-19 13:00 ` [PATCH v4 8/10] ARM: LPC32xx: DTS files for device tree conversion Roland Stigge
2012-04-19 13:00 ` [PATCH v4 9/10] ARM: LPC32xx: Device tree support Roland Stigge
2012-04-19 13:00 ` Roland Stigge [this message]

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=1334840415-14287-11-git-send-email-stigge@antcom.de \
    --to=stigge@antcom.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).