aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-09-27 06:07:48 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-10-07 14:12:55 -0400
commite7f3c60037fcad0edc0b79b8d285418246bcef40 (patch)
treed1b8d2201ef431605fa681c6521bf18ea03bd297
parent5a89770daad83df74d77a8d34a1ffaedae565ce9 (diff)
[ARM] pxa: fix incorrect initialization of mfp sysdev when not pxa2xx
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>
-rw-r--r--arch/arm/mach-pxa/mfp-pxa2xx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/mfp-pxa2xx.c b/arch/arm/mach-pxa/mfp-pxa2xx.c
index 3ee1f39062e9..2061c00c8ead 100644
--- a/arch/arm/mach-pxa/mfp-pxa2xx.c
+++ b/arch/arm/mach-pxa/mfp-pxa2xx.c
@@ -338,6 +338,9 @@ static int __init pxa2xx_mfp_init(void)
338{ 338{
339 int i; 339 int i;
340 340
341 if (!cpu_is_pxa2xx())
342 return 0;
343
341 if (cpu_is_pxa25x()) 344 if (cpu_is_pxa25x())
342 pxa25x_mfp_init(); 345 pxa25x_mfp_init();
343 346