diff options
author | Wolfgang Denk <wd@denx.de> | 2009-05-16 10:47:39 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:47:16 +0200 |
commit | 8b251263191ec554967dd1add6237c1ba7f7eb25 (patch) | |
tree | 06600510cd5a2077675d17f0a40ba50bfceec6ca /cpu | |
parent | de26ef99bddbce4ed225f93afcf0bee99c3b6f87 (diff) | |
download | u-boot-imx-8b251263191ec554967dd1add6237c1ba7f7eb25.zip u-boot-imx-8b251263191ec554967dd1add6237c1ba7f7eb25.tar.gz u-boot-imx-8b251263191ec554967dd1add6237c1ba7f7eb25.tar.bz2 |
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>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/mpc512x/pci.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cpu/mpc512x/pci.c b/cpu/mpc512x/pci.c index 806c428..3c63592 100644 --- a/cpu/mpc512x/pci.c +++ b/cpu/mpc512x/pci.c @@ -54,6 +54,7 @@ pci_init_board(void) u16 reg16; u32 reg32; u32 dev; + int i; struct pci_controller *hose; /* Set PCI divider for 33MHz */ @@ -77,12 +78,8 @@ pci_init_board(void) pci_ctrl->gcr = 1; /* We need to wait at least a 1sec based on PCI specs */ - { - int i; - - for (i = 0; i < 1000; i++) - udelay(1000); - } + for (i = 0; i < 1000; i++) + udelay(1000); /* * Configure PCI Local Access Windows |