brcmsmac: read PCI vendor and device id only for PCI devices
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 29 Apr 2012 00:50:42 +0000 (02:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 May 2012 16:45:26 +0000 (12:45 -0400)
commita06f2109917e19f41af4d19144ce993247b4eff2
tree7a61fe23754e28821421a5e7a288a620ffece466
parent00bcda400434039db38fbfd26aef6090129d8c2c
brcmsmac: read PCI vendor and device id only for PCI devices

If brcmsmac is used on non PCI(s) devices it should not try to access
bus->host_pci.

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>
drivers/net/wireless/brcm80211/brcmsmac/main.c