diff options
author | Wolfgang Denk <wd@denx.de> | 2007-08-13 22:00:25 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-08-13 22:00:25 +0200 |
commit | 8a92b7c60b40ff79e2cc96e13aeac2a531dde473 (patch) | |
tree | 8a1d8883fa6868b8c0acd529b49fd5c00b425301 /drivers/pci_auto.c | |
parent | be5d72d10d47609326226225181e301fb9a33b58 (diff) | |
parent | 8e2dd87eee01bb1b83beab7caf22b851c5cafb2c (diff) | |
download | u-boot-imx-8a92b7c60b40ff79e2cc96e13aeac2a531dde473.zip u-boot-imx-8a92b7c60b40ff79e2cc96e13aeac2a531dde473.tar.gz u-boot-imx-8a92b7c60b40ff79e2cc96e13aeac2a531dde473.tar.bz2 |
Merge with /home/wd/git/u-boot/custodian/u-boot-mpc86xx
Diffstat (limited to 'drivers/pci_auto.c')
-rw-r--r-- | drivers/pci_auto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci_auto.c b/drivers/pci_auto.c index a3c609b..2378553 100644 --- a/drivers/pci_auto.c +++ b/drivers/pci_auto.c @@ -94,7 +94,7 @@ void pciauto_setup_device(struct pci_controller *hose, pci_hose_read_config_dword(hose, dev, PCI_COMMAND, &cmdstat); cmdstat = (cmdstat & ~(PCI_COMMAND_IO | PCI_COMMAND_MEMORY)) | PCI_COMMAND_MASTER; - for (bar = PCI_BASE_ADDRESS_0; bar <= PCI_BASE_ADDRESS_0 + (bars_num*4); bar += 4) { + for (bar = PCI_BASE_ADDRESS_0; bar < PCI_BASE_ADDRESS_0 + (bars_num*4); bar += 4) { /* Tickle the BAR and get the response */ pci_hose_write_config_dword(hose, dev, bar, 0xffffffff); pci_hose_read_config_dword(hose, dev, bar, &bar_response); |