mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-06 03:06:16 +09:00
cpu/mpc512x/pci.c: minor coding style cleanup
Get rid of variable declaration in the middle of the code. Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: John Rigby <jcrigby@gmail.com>
This commit is contained in:
parent
de26ef99bd
commit
8b25126319
|
@ -54,6 +54,7 @@ pci_init_board(void)
|
||||||
u16 reg16;
|
u16 reg16;
|
||||||
u32 reg32;
|
u32 reg32;
|
||||||
u32 dev;
|
u32 dev;
|
||||||
|
int i;
|
||||||
struct pci_controller *hose;
|
struct pci_controller *hose;
|
||||||
|
|
||||||
/* Set PCI divider for 33MHz */
|
/* Set PCI divider for 33MHz */
|
||||||
|
@ -77,12 +78,8 @@ pci_init_board(void)
|
||||||
pci_ctrl->gcr = 1;
|
pci_ctrl->gcr = 1;
|
||||||
|
|
||||||
/* We need to wait at least a 1sec based on PCI specs */
|
/* We need to wait at least a 1sec based on PCI specs */
|
||||||
{
|
for (i = 0; i < 1000; i++)
|
||||||
int i;
|
udelay(1000);
|
||||||
|
|
||||||
for (i = 0; i < 1000; i++)
|
|
||||||
udelay(1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Configure PCI Local Access Windows
|
* Configure PCI Local Access Windows
|
||||||
|
|
Loading…
Reference in New Issue
Block a user