|
@@ -746,7 +746,7 @@ int bcm43xx_sprom_write(struct bcm43xx_private *bcm, const u16 *sprom)
|
|
if (err)
|
|
if (err)
|
|
goto err_ctlreg;
|
|
goto err_ctlreg;
|
|
spromctl |= 0x10; /* SPROM WRITE enable. */
|
|
spromctl |= 0x10; /* SPROM WRITE enable. */
|
|
- bcm43xx_pci_write_config32(bcm, BCM43xx_PCICFG_SPROMCTL, spromctl);
|
|
|
|
|
|
+ err = bcm43xx_pci_write_config32(bcm, BCM43xx_PCICFG_SPROMCTL, spromctl);
|
|
if (err)
|
|
if (err)
|
|
goto err_ctlreg;
|
|
goto err_ctlreg;
|
|
/* We must burn lots of CPU cycles here, but that does not
|
|
/* We must burn lots of CPU cycles here, but that does not
|
|
@@ -768,7 +768,7 @@ int bcm43xx_sprom_write(struct bcm43xx_private *bcm, const u16 *sprom)
|
|
mdelay(20);
|
|
mdelay(20);
|
|
}
|
|
}
|
|
spromctl &= ~0x10; /* SPROM WRITE enable. */
|
|
spromctl &= ~0x10; /* SPROM WRITE enable. */
|
|
- bcm43xx_pci_write_config32(bcm, BCM43xx_PCICFG_SPROMCTL, spromctl);
|
|
|
|
|
|
+ err = bcm43xx_pci_write_config32(bcm, BCM43xx_PCICFG_SPROMCTL, spromctl);
|
|
if (err)
|
|
if (err)
|
|
goto err_ctlreg;
|
|
goto err_ctlreg;
|
|
mdelay(500);
|
|
mdelay(500);
|