mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
pxa: fix pcmcia operation on 'i' may be undefined
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
4d77f5102d
commit
6d12e697de
1 changed files with 5 additions and 3 deletions
|
@ -35,8 +35,10 @@ int pcmcia_on (void)
|
||||||
debug ("%s\n", __FUNCTION__);
|
debug ("%s\n", __FUNCTION__);
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while (reg_arr[i])
|
while (reg_arr[i]) {
|
||||||
*((volatile unsigned int *) reg_arr[i++]) |= reg_arr[i++];
|
(*(volatile unsigned int *) reg_arr[i]) |= reg_arr[i + 1];
|
||||||
|
i += 2;
|
||||||
|
}
|
||||||
udelay (1000);
|
udelay (1000);
|
||||||
|
|
||||||
debug ("%s: programmed mem controller \n", __FUNCTION__);
|
debug ("%s: programmed mem controller \n", __FUNCTION__);
|
||||||
|
|
Loading…
Add table
Reference in a new issue