diff options
author | Roland Stigge <stigge@antcom.de> | 2012-04-22 06:01:19 -0400 |
---|---|---|
committer | Roland Stigge <stigge@antcom.de> | 2012-04-22 06:01:19 -0400 |
commit | be20dbc87879582e121e0525adcada13b3a8f476 (patch) | |
tree | 1731b4f4728d5a839bead0572b51670dd9195def /arch/arm/mach-lpc32xx | |
parent | f5c422713308e492eddc44a12134f9f249ddfbdb (diff) |
ARM: LPC32xx: Move common code to common.c
This patch moves non-boardspecific LPC32xx code to common.c
Signed-off-by: Roland Stigge <stigge@antcom.de>
Diffstat (limited to 'arch/arm/mach-lpc32xx')
-rw-r--r-- | arch/arm/mach-lpc32xx/common.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-lpc32xx/phy3250.c | 13 |
2 files changed, 13 insertions, 13 deletions
diff --git a/arch/arm/mach-lpc32xx/common.c b/arch/arm/mach-lpc32xx/common.c index 0a41e1ec0c3a..5c96057b6d78 100644 --- a/arch/arm/mach-lpc32xx/common.c +++ b/arch/arm/mach-lpc32xx/common.c | |||
@@ -223,3 +223,16 @@ void lpc23xx_restart(char mode, const char *cmd) | |||
223 | while (1) | 223 | while (1) |
224 | ; | 224 | ; |
225 | } | 225 | } |
226 | |||
227 | static int __init lpc32xx_display_uid(void) | ||
228 | { | ||
229 | u32 uid[4]; | ||
230 | |||
231 | lpc32xx_get_uid(uid); | ||
232 | |||
233 | printk(KERN_INFO "LPC32XX unique ID: %08x%08x%08x%08x\n", | ||
234 | uid[3], uid[2], uid[1], uid[0]); | ||
235 | |||
236 | return 1; | ||
237 | } | ||
238 | arch_initcall(lpc32xx_display_uid); | ||
diff --git a/arch/arm/mach-lpc32xx/phy3250.c b/arch/arm/mach-lpc32xx/phy3250.c index 483846ff8293..540106cdb9ec 100644 --- a/arch/arm/mach-lpc32xx/phy3250.c +++ b/arch/arm/mach-lpc32xx/phy3250.c | |||
@@ -310,19 +310,6 @@ static void __init lpc3250_machine_init(void) | |||
310 | SPI0_CS_GPIO); | 310 | SPI0_CS_GPIO); |
311 | } | 311 | } |
312 | 312 | ||
313 | static int __init lpc32xx_display_uid(void) | ||
314 | { | ||
315 | u32 uid[4]; | ||
316 | |||
317 | lpc32xx_get_uid(uid); | ||
318 | |||
319 | printk(KERN_INFO "LPC32XX unique ID: %08x%08x%08x%08x\n", | ||
320 | uid[3], uid[2], uid[1], uid[0]); | ||
321 | |||
322 | return 1; | ||
323 | } | ||
324 | arch_initcall(lpc32xx_display_uid); | ||
325 | |||
326 | static char const *lpc32xx_dt_compat[] __initdata = { | 313 | static char const *lpc32xx_dt_compat[] __initdata = { |
327 | "nxp,lpc3220", | 314 | "nxp,lpc3220", |
328 | "nxp,lpc3230", | 315 | "nxp,lpc3230", |