]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm/mach-pxa/pxa25x.c
[ARM] pxa: make cpu_is_pxa2* macros more consistent
[karo-tx-linux.git] / arch / arm / mach-pxa / pxa25x.c
index db7be22ccd179dee6468720c59388be5a8955d54..a3a6aff5f0d4ce7951831ca330c7b95e8c990158 100644 (file)
@@ -348,11 +348,7 @@ static int __init pxa25x_init(void)
 {
        int i, ret = 0;
 
-       /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */
-       if (cpu_is_pxa255())
-               clks_register(&pxa25x_hwuart_clk, 1);
-
-       if (cpu_is_pxa21x() || cpu_is_pxa25x()) {
+       if (cpu_is_pxa25x()) {
 
                reset_status = RCSR;
 
@@ -375,9 +371,11 @@ static int __init pxa25x_init(void)
                        return ret;
        }
 
-       /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */
-       if (cpu_is_pxa255())
+       /* Only add HWUART for PXA255/26x; PXA210/250 do not have it. */
+       if (cpu_is_pxa255()) {
+               clks_register(&pxa25x_hwuart_clk, 1);
                ret = platform_device_register(&pxa_device_hwuart);
+       }
 
        return ret;
 }