diff options
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_main.c')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_main.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/bcm43xx/bcm43xx_main.c index 23aaf1ed8541..2e400aacc436 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_main.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_main.c | |||
@@ -95,13 +95,9 @@ static int modparam_noleds; | |||
95 | module_param_named(noleds, modparam_noleds, int, 0444); | 95 | module_param_named(noleds, modparam_noleds, int, 0444); |
96 | MODULE_PARM_DESC(noleds, "Turn off all LED activity"); | 96 | MODULE_PARM_DESC(noleds, "Turn off all LED activity"); |
97 | 97 | ||
98 | #ifdef CONFIG_BCM43XX_DEBUG | ||
99 | static char modparam_fwpostfix[64]; | 98 | static char modparam_fwpostfix[64]; |
100 | module_param_string(fwpostfix, modparam_fwpostfix, 64, 0444); | 99 | module_param_string(fwpostfix, modparam_fwpostfix, 64, 0444); |
101 | MODULE_PARM_DESC(fwpostfix, "Postfix for .fw files. Useful for debugging."); | 100 | MODULE_PARM_DESC(fwpostfix, "Postfix for .fw files. Useful for using multiple firmware image versions."); |
102 | #else | ||
103 | # define modparam_fwpostfix "" | ||
104 | #endif /* CONFIG_BCM43XX_DEBUG*/ | ||
105 | 101 | ||
106 | 102 | ||
107 | /* If you want to debug with just a single device, enable this, | 103 | /* If you want to debug with just a single device, enable this, |
@@ -2983,8 +2979,10 @@ static int bcm43xx_chipset_attach(struct bcm43xx_private *bcm) | |||
2983 | err = bcm43xx_pctl_set_crystal(bcm, 1); | 2979 | err = bcm43xx_pctl_set_crystal(bcm, 1); |
2984 | if (err) | 2980 | if (err) |
2985 | goto out; | 2981 | goto out; |
2986 | bcm43xx_pci_read_config16(bcm, PCI_STATUS, &pci_status); | 2982 | err = bcm43xx_pci_read_config16(bcm, PCI_STATUS, &pci_status); |
2987 | bcm43xx_pci_write_config16(bcm, PCI_STATUS, pci_status & ~PCI_STATUS_SIG_TARGET_ABORT); | 2983 | if (err) |
2984 | goto out; | ||
2985 | err = bcm43xx_pci_write_config16(bcm, PCI_STATUS, pci_status & ~PCI_STATUS_SIG_TARGET_ABORT); | ||
2988 | 2986 | ||
2989 | out: | 2987 | out: |
2990 | return err; | 2988 | return err; |
@@ -3796,12 +3794,18 @@ static int bcm43xx_attach_board(struct bcm43xx_private *bcm) | |||
3796 | } | 3794 | } |
3797 | net_dev->base_addr = (unsigned long)bcm->mmio_addr; | 3795 | net_dev->base_addr = (unsigned long)bcm->mmio_addr; |
3798 | 3796 | ||
3799 | bcm43xx_pci_read_config16(bcm, PCI_SUBSYSTEM_VENDOR_ID, | 3797 | err = bcm43xx_pci_read_config16(bcm, PCI_SUBSYSTEM_VENDOR_ID, |
3800 | &bcm->board_vendor); | 3798 | &bcm->board_vendor); |
3801 | bcm43xx_pci_read_config16(bcm, PCI_SUBSYSTEM_ID, | 3799 | if (err) |
3800 | goto err_iounmap; | ||
3801 | err = bcm43xx_pci_read_config16(bcm, PCI_SUBSYSTEM_ID, | ||
3802 | &bcm->board_type); | 3802 | &bcm->board_type); |
3803 | bcm43xx_pci_read_config16(bcm, PCI_REVISION_ID, | 3803 | if (err) |
3804 | goto err_iounmap; | ||
3805 | err = bcm43xx_pci_read_config16(bcm, PCI_REVISION_ID, | ||
3804 | &bcm->board_revision); | 3806 | &bcm->board_revision); |
3807 | if (err) | ||
3808 | goto err_iounmap; | ||
3805 | 3809 | ||
3806 | err = bcm43xx_chipset_attach(bcm); | 3810 | err = bcm43xx_chipset_attach(bcm); |
3807 | if (err) | 3811 | if (err) |
@@ -3892,6 +3896,7 @@ err_pci_release: | |||
3892 | pci_release_regions(pci_dev); | 3896 | pci_release_regions(pci_dev); |
3893 | err_pci_disable: | 3897 | err_pci_disable: |
3894 | pci_disable_device(pci_dev); | 3898 | pci_disable_device(pci_dev); |
3899 | printk(KERN_ERR PFX "Unable to attach board\n"); | ||
3895 | goto out; | 3900 | goto out; |
3896 | } | 3901 | } |
3897 | 3902 | ||