summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/pci.c
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan2009-09-09 11:55:49 +0200
committerJohn W. Linville2009-09-09 17:25:25 +0200
commitaeac355d23fb13a2082a8740ae7cf9408a71ec2c (patch)
tree831acd0d8035e29f4d72b31121a929fb28442cb4 /drivers/net/wireless/ath/ath9k/pci.c
parentwireless: mark prism54 as deprecated and mark for removal (diff)
downloadkernel-qcow2-linux-aeac355d23fb13a2082a8740ae7cf9408a71ec2c.tar.gz
kernel-qcow2-linux-aeac355d23fb13a2082a8740ae7cf9408a71ec2c.tar.xz
kernel-qcow2-linux-aeac355d23fb13a2082a8740ae7cf9408a71ec2c.zip
ath9k: Store subsystem id in struct hw_version
This subsystem id will be used later to turn on the btcoex support. Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/pci.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/pci.c4
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)
struct ath_softc *sc;
struct ieee80211_hw *hw;
u8 csz;
+ u16 subsysid;
u32 val;
int ret = 0;
struct ath_hw *ah;
@@ -178,7 +179,8 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
sc->mem = mem;
sc->bus_ops = &ath_pci_bus_ops;
- ret = ath_init_device(id->device, sc);
+ pci_read_config_word(pdev, PCI_SUBSYSTEM_ID, &subsysid);
+ ret = ath_init_device(id->device, sc, subsysid);
if (ret) {
dev_err(&pdev->dev, "failed to initialize device\n");
goto bad3;