diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/pci.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c index 8b288141d4c1..903dd8ad9d43 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c | |||
@@ -88,6 +88,7 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
88 | struct ath_softc *sc; | 88 | struct ath_softc *sc; |
89 | struct ieee80211_hw *hw; | 89 | struct ieee80211_hw *hw; |
90 | u8 csz; | 90 | u8 csz; |
91 | u16 subsysid; | ||
91 | u32 val; | 92 | u32 val; |
92 | int ret = 0; | 93 | int ret = 0; |
93 | struct ath_hw *ah; | 94 | struct ath_hw *ah; |
@@ -178,7 +179,8 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
178 | sc->mem = mem; | 179 | sc->mem = mem; |
179 | sc->bus_ops = &ath_pci_bus_ops; | 180 | sc->bus_ops = &ath_pci_bus_ops; |
180 | 181 | ||
181 | ret = ath_init_device(id->device, sc); | 182 | pci_read_config_word(pdev, PCI_SUBSYSTEM_ID, &subsysid); |
183 | ret = ath_init_device(id->device, sc, subsysid); | ||
182 | if (ret) { | 184 | if (ret) { |
183 | dev_err(&pdev->dev, "failed to initialize device\n"); | 185 | dev_err(&pdev->dev, "failed to initialize device\n"); |
184 | goto bad3; | 186 | goto bad3; |