summaryrefslogtreecommitdiff
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2007-05-15 09:26:49 (GMT)
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-07-12 13:28:04 (GMT)
commitb23170c01f6e4ea043df7cd9486c2488e01f3d60 (patch)
tree3357533ac2d0a889628f9290e045af920e051974 /arch/arm/mach-pxa
parent7a2b94bc39915041304578188441f0f21aa5532a (diff)
downloadlinux-fsl-qoriq-b23170c01f6e4ea043df7cd9486c2488e01f3d60.tar.xz
[ARM] pxa: introduce cpu_is_pxaXXX macros
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa')
-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 64b08b7..147b7c4 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 = {
static int __init pxa_init(void)
{
- int cpuid, ret;
+ int ret;
ret = platform_add_devices(devices, ARRAY_SIZE(devices));
if (ret)
return ret;
/* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */
- cpuid = read_cpuid(CPUID_ID);
- if (((cpuid >> 4) & 0xfff) == 0x2d0 ||
- ((cpuid >> 4) & 0xfff) == 0x290)
+ if (cpu_is_pxa25x())
ret = platform_device_register(&hwuart_device);
return ret;