Bluetooth: hci_bcm4377: Fix missing pci_disable_device() on error in bcm4377_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 12 Nov 2022 09:04:37 +0000 (17:04 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 12 Dec 2022 22:19:25 +0000 (14:19 -0800)
commitb1e05cfb646cda7c53b5a34ea946c9e506db3c1c
treed58db7a365d22c7a48ee94ebfce74ca15a90f621
parentac09bb3f87a776f8c7cabc746066a9aca8f507b6
Bluetooth: hci_bcm4377: Fix missing pci_disable_device() on error in bcm4377_probe()

pci_disable_device() need be called while module exiting, switch to use
pcim_enable(), pci_disable_device() will be called in pcim_release()
after probe() failure.

Fixes: ab80b2cec05f ("Bluetooth: hci_bcm4377: Add new driver for BCM4377 PCIe boards")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_bcm4377.c