Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22291cea authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by John W. Linville
Browse files

brcmsmac: handle non pci in ai_deviceremoved()



This is based on code from the Broadcom SDK.

Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Tested-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent a06f2109
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;