diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-05-11 18:01:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-12 14:10:50 -0400 |
commit | f1a9c1e694f84938e6526590d23e88a791a8069f (patch) | |
tree | 7b0c801feb3a1dcef36d5aed55ddff4fedec3444 | |
parent | 9ba7f4f5eba5f4b44c7796bbad29f8ec3a7d5864 (diff) |
bcma: pci: trivial: correct amount of maximum retries
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/bcma/driver_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bcma/driver_pci.c b/drivers/bcma/driver_pci.c index b98b8359bef5..e757e4e3c7e2 100644 --- a/drivers/bcma/driver_pci.c +++ b/drivers/bcma/driver_pci.c | |||
@@ -81,7 +81,7 @@ static u16 bcma_pcie_mdio_read(struct bcma_drv_pci *pc, u8 device, u8 address) | |||
81 | pcicore_write32(pc, mdio_data, v); | 81 | pcicore_write32(pc, mdio_data, v); |
82 | /* Wait for the device to complete the transaction */ | 82 | /* Wait for the device to complete the transaction */ |
83 | udelay(10); | 83 | udelay(10); |
84 | for (i = 0; i < 200; i++) { | 84 | for (i = 0; i < max_retries; i++) { |
85 | v = pcicore_read32(pc, mdio_control); | 85 | v = pcicore_read32(pc, mdio_control); |
86 | if (v & 0x100 /* Trans complete */) { | 86 | if (v & 0x100 /* Trans complete */) { |
87 | udelay(10); | 87 | udelay(10); |