mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
[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>
This commit is contained in:
parent
5a89770daa
commit
e7f3c60037
1 changed files with 3 additions and 0 deletions
|
@ -338,6 +338,9 @@ static int __init pxa2xx_mfp_init(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (!cpu_is_pxa2xx())
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (cpu_is_pxa25x())
|
if (cpu_is_pxa25x())
|
||||||
pxa25x_mfp_init();
|
pxa25x_mfp_init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue