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:
Jean-Christophe PLAGNIOL-VILLARD 2008-05-01 02:13:43 +02:00 committed by Wolfgang Denk
parent 4d77f5102d
commit 6d12e697de

View file

@ -35,8 +35,10 @@ int pcmcia_on (void)
debug ("%s\n", __FUNCTION__);
i = 0;
while (reg_arr[i])
*((volatile unsigned int *) reg_arr[i++]) |= reg_arr[i++];
while (reg_arr[i]) {
(*(volatile unsigned int *) reg_arr[i]) |= reg_arr[i + 1];
i += 2;
}
udelay (1000);
debug ("%s: programmed mem controller \n", __FUNCTION__);