ARM: LPC32xx: Move common code to common.c
authorRoland Stigge <stigge@antcom.de>
Sun, 22 Apr 2012 10:01:19 +0000 (12:01 +0200)
committerRoland Stigge <stigge@antcom.de>
Sun, 22 Apr 2012 10:01:19 +0000 (12:01 +0200)
This patch moves non-boardspecific LPC32xx code to common.c

Signed-off-by: Roland Stigge <stigge@antcom.de>
arch/arm/mach-lpc32xx/common.c
arch/arm/mach-lpc32xx/phy3250.c

index 0a41e1ec0c3a9131e1aaa50a4fdf9415a790a0ad..5c96057b6d78e2a864863a87e38e91a03086a62d 100644 (file)
@@ -223,3 +223,16 @@ void lpc23xx_restart(char mode, const char *cmd)
        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);
index 483846ff8293b8bf261cd35a576815c366223d1b..540106cdb9ec42658c404b92be618d8766570adf 100644 (file)
@@ -310,19 +310,6 @@ static void __init lpc3250_machine_init(void)
                        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,lpc3220",
        "nxp,lpc3230",