diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-06-28 13:53:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-28 13:56:21 -0400 |
commit | 3be3fdb58ad22f67c5fd12548c88cefe3f726588 (patch) | |
tree | 0c5c4e509c37098671df55a20b7e9aadb3d74db8 /drivers/net/wireless/rtlwifi/pci.c | |
parent | 77b7023afe93b5e3bdcf2c0faaa5e5caafb6ef44 (diff) | |
parent | 5ee0a58d8ca443e80ed8712c86c9938360b79cac (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Conflicts:
drivers/net/wireless/iwlwifi/iwl-tx.c
Diffstat (limited to 'drivers/net/wireless/rtlwifi/pci.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/pci.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index ad39af462f87..6a15f368ebb9 100644 --- a/drivers/net/wireless/rtlwifi/pci.c +++ b/drivers/net/wireless/rtlwifi/pci.c | |||
@@ -1615,6 +1615,16 @@ static bool _rtl_pci_find_adapter(struct pci_dev *pdev, | |||
1615 | pci_read_config_byte(pdev, 0x8, &revisionid); | 1615 | pci_read_config_byte(pdev, 0x8, &revisionid); |
1616 | pci_read_config_word(pdev, 0x3C, &irqline); | 1616 | pci_read_config_word(pdev, 0x3C, &irqline); |
1617 | 1617 | ||
1618 | /* PCI ID 0x10ec:0x8192 occurs for both RTL8192E, which uses | ||
1619 | * r8192e_pci, and RTL8192SE, which uses this driver. If the | ||
1620 | * revision ID is RTL_PCI_REVISION_ID_8192PCIE (0x01), then | ||
1621 | * the correct driver is r8192e_pci, thus this routine should | ||
1622 | * return false. | ||
1623 | */ | ||
1624 | if (deviceid == RTL_PCI_8192SE_DID && | ||
1625 | revisionid == RTL_PCI_REVISION_ID_8192PCIE) | ||
1626 | return false; | ||
1627 | |||
1618 | if (deviceid == RTL_PCI_8192_DID || | 1628 | if (deviceid == RTL_PCI_8192_DID || |
1619 | deviceid == RTL_PCI_0044_DID || | 1629 | deviceid == RTL_PCI_0044_DID || |
1620 | deviceid == RTL_PCI_0047_DID || | 1630 | deviceid == RTL_PCI_0047_DID || |
@@ -1847,7 +1857,8 @@ int __devinit rtl_pci_probe(struct pci_dev *pdev, | |||
1847 | pci_write_config_byte(pdev, 0x04, 0x07); | 1857 | pci_write_config_byte(pdev, 0x04, 0x07); |
1848 | 1858 | ||
1849 | /* find adapter */ | 1859 | /* find adapter */ |
1850 | _rtl_pci_find_adapter(pdev, hw); | 1860 | if (!_rtl_pci_find_adapter(pdev, hw)) |
1861 | goto fail3; | ||
1851 | 1862 | ||
1852 | /* Init IO handler */ | 1863 | /* Init IO handler */ |
1853 | _rtl_pci_io_handler_init(&pdev->dev, hw); | 1864 | _rtl_pci_io_handler_init(&pdev->dev, hw); |