aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/generic.c')
-rw-r--r--arch/arm/mach-pxa/generic.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c
index 64b08b744f9f..147b7c40d9f9 100644
--- a/arch/arm/mach-pxa/generic.c
+++ b/arch/arm/mach-pxa/generic.c
@@ -448,16 +448,14 @@ static struct platform_device *devices[] __initdata = {
448 448
449static int __init pxa_init(void) 449static int __init pxa_init(void)
450{ 450{
451 int cpuid, ret; 451 int ret;
452 452
453 ret = platform_add_devices(devices, ARRAY_SIZE(devices)); 453 ret = platform_add_devices(devices, ARRAY_SIZE(devices));
454 if (ret) 454 if (ret)
455 return ret; 455 return ret;
456 456
457 /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */ 457 /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */
458 cpuid = read_cpuid(CPUID_ID); 458 if (cpu_is_pxa25x())
459 if (((cpuid >> 4) & 0xfff) == 0x2d0 ||
460 ((cpuid >> 4) & 0xfff) == 0x290)
461 ret = platform_device_register(&hwuart_device); 459 ret = platform_device_register(&hwuart_device);
462 460
463 return ret; 461 return ret;