diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/b43legacy/main.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c index 2162663293c..f6d54463b24 100644 --- a/drivers/net/wireless/b43legacy/main.c +++ b/drivers/net/wireless/b43legacy/main.c | |||
@@ -3696,26 +3696,8 @@ static int b43legacy_one_core_attach(struct ssb_device *dev, | |||
3696 | struct b43legacy_wl *wl) | 3696 | struct b43legacy_wl *wl) |
3697 | { | 3697 | { |
3698 | struct b43legacy_wldev *wldev; | 3698 | struct b43legacy_wldev *wldev; |
3699 | struct pci_dev *pdev; | ||
3700 | int err = -ENOMEM; | 3699 | int err = -ENOMEM; |
3701 | 3700 | ||
3702 | if (!list_empty(&wl->devlist)) { | ||
3703 | /* We are not the first core on this chip. */ | ||
3704 | pdev = (dev->bus->bustype == SSB_BUSTYPE_PCI) ? dev->bus->host_pci : NULL; | ||
3705 | /* Only special chips support more than one wireless | ||
3706 | * core, although some of the other chips have more than | ||
3707 | * one wireless core as well. Check for this and | ||
3708 | * bail out early. | ||
3709 | */ | ||
3710 | if (!pdev || | ||
3711 | ((pdev->device != 0x4321) && | ||
3712 | (pdev->device != 0x4313) && | ||
3713 | (pdev->device != 0x431A))) { | ||
3714 | b43legacydbg(wl, "Ignoring unconnected 802.11 core\n"); | ||
3715 | return -ENODEV; | ||
3716 | } | ||
3717 | } | ||
3718 | |||
3719 | wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); | 3701 | wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); |
3720 | if (!wldev) | 3702 | if (!wldev) |
3721 | goto out; | 3703 | goto out; |