aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/b43/main.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 675e288a3c5..70838e82534 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -4836,25 +4836,8 @@ static void b43_one_core_detach(struct ssb_device *dev)
4836static int b43_one_core_attach(struct ssb_device *dev, struct b43_wl *wl) 4836static int b43_one_core_attach(struct ssb_device *dev, struct b43_wl *wl)
4837{ 4837{
4838 struct b43_wldev *wldev; 4838 struct b43_wldev *wldev;
4839 struct pci_dev *pdev;
4840 int err = -ENOMEM; 4839 int err = -ENOMEM;
4841 4840
4842 if (!list_empty(&wl->devlist)) {
4843 /* We are not the first core on this chip. */
4844 pdev = (dev->bus->bustype == SSB_BUSTYPE_PCI) ? dev->bus->host_pci : NULL;
4845 /* Only special chips support more than one wireless
4846 * core, although some of the other chips have more than
4847 * one wireless core as well. Check for this and
4848 * bail out early.
4849 */
4850 if (!pdev ||
4851 ((pdev->device != 0x4321) &&
4852 (pdev->device != 0x4313) && (pdev->device != 0x431A))) {
4853 b43dbg(wl, "Ignoring unconnected 802.11 core\n");
4854 return -ENODEV;
4855 }
4856 }
4857
4858 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); 4841 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL);
4859 if (!wldev) 4842 if (!wldev)
4860 goto out; 4843 goto out;