Skip to content

Commit

Permalink
[ARM] pxa: fix incorrect initialization of mfp sysdev when not pxa2xx
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Miao authored and Russell King committed Oct 7, 2008
1 parent 5a89770 commit e7f3c60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-pxa/mfp-pxa2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit e7f3c60

Please sign in to comment.