diff options
author | Ian Molton <spyro@f2s.com> | 2008-06-25 17:17:16 -0400 |
---|---|---|
committer | Ian Molton <spyro@f2s.com> | 2008-07-10 05:28:36 -0400 |
commit | aa9ae8eb1a917c8794bceef0a8e6ff1f4d7c46de (patch) | |
tree | d3628cce8f72609640c952f4eeddc19a464a6141 /arch/arm/mach-pxa/pxa25x.c | |
parent | c0b8556f2f8146bd38324b14b1ce00f249ba8ed9 (diff) |
Fix serial broken-ness on PXA250
PXA255 and 26x are the only PXA CPUs with HWUART. This patch prevents bogus
initialisation on other models.
Signed-off-by: Ian Molton <spyro@f2s.com>
Diffstat (limited to 'arch/arm/mach-pxa/pxa25x.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa25x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c index 4cd50e3005e9..90b441f5df5a 100644 --- a/arch/arm/mach-pxa/pxa25x.c +++ b/arch/arm/mach-pxa/pxa25x.c | |||
@@ -293,7 +293,7 @@ static int __init pxa25x_init(void) | |||
293 | int i, ret = 0; | 293 | int i, ret = 0; |
294 | 294 | ||
295 | /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */ | 295 | /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */ |
296 | if (cpu_is_pxa25x()) | 296 | if (cpu_is_pxa255()) |
297 | clks_register(&pxa25x_hwuart_clk, 1); | 297 | clks_register(&pxa25x_hwuart_clk, 1); |
298 | 298 | ||
299 | if (cpu_is_pxa21x() || cpu_is_pxa25x()) { | 299 | if (cpu_is_pxa21x() || cpu_is_pxa25x()) { |
@@ -317,7 +317,7 @@ static int __init pxa25x_init(void) | |||
317 | } | 317 | } |
318 | 318 | ||
319 | /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */ | 319 | /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */ |
320 | if (cpu_is_pxa25x()) | 320 | if (cpu_is_pxa255()) |
321 | ret = platform_device_register(&pxa_device_hwuart); | 321 | ret = platform_device_register(&pxa_device_hwuart); |
322 | 322 | ||
323 | clks_register(&gpio7_clk, 1); | 323 | clks_register(&gpio7_clk, 1); |