[ARM] pxa: fix incorrect initialization of mfp sysdev when not pxa2xx
authorEric Miao <eric.miao@marvell.com>
Sat, 27 Sep 2008 10:07:48 +0000 (18:07 +0800)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 7 Oct 2008 18:12:55 +0000 (19:12 +0100)
The initialization of mfp sysdev in pxa2xx_mfp_init() shall really be
avoided when !cpu_is_pxa2xx().

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/mfp-pxa2xx.c

index 3ee1f39062e9f7ee037f7d497c6890dbb328e237..2061c00c8ead6afd35d276b2f64028b50577fa25 100644 (file)
@@ -338,6 +338,9 @@ static int __init pxa2xx_mfp_init(void)
 {
        int i;
 
+       if (!cpu_is_pxa2xx())
+               return 0;
+
        if (cpu_is_pxa25x())
                pxa25x_mfp_init();