Skip to content

Commit

Permalink
brcmsmac: handle non pci in ai_deviceremoved()
Browse files Browse the repository at this point in the history
This is based on code from the Broadcom SDK.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Hauke Mehrtens authored and John W. Linville committed May 16, 2012
1 parent a06f210 commit 22291ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,9 @@ bool ai_deviceremoved(struct si_pub *sih)

sii = (struct si_info *)sih;

if (sii->icbus->hosttype != BCMA_HOSTTYPE_PCI)
return false;

pci_read_config_dword(sii->pcibus, PCI_VENDOR_ID, &w);
if ((w & 0xFFFF) != PCI_VENDOR_ID_BROADCOM)
return true;
Expand Down

0 comments on commit 22291ce

Please sign in to comment.