Skip to content

Commit 61f7a8f

Browse files
arndbVudentz
authored andcommitted
Bluetooth: btmtk: Fix btmtk.c undefined reference build error harder
The previous fix was incomplete as the link failure still persists with CONFIG_USB=m when the sdio or serial wrappers for btmtk.c are build-in: btmtk.c:(.text+0x468): undefined reference to `usb_alloc_urb' btmtk.c:(.text+0x488): undefined reference to `usb_free_urb' btmtk.c:(.text+0x500): undefined reference to `usb_anchor_urb' btmtk.c:(.text+0x50a): undefined reference to `usb_submit_urb' btmtk.c:(.text+0x92c): undefined reference to `usb_control_msg' btmtk.c:(.text+0xa92): undefined reference to `usb_unanchor_urb' btmtk.c:(.text+0x11e4): undefined reference to `usb_set_interface' btmtk.c:(.text+0x120a): undefined reference to `usb_kill_anchored_urbs' Disallow this configuration. Fixes: f0c83a2 ("Bluetooth: btmtk: Fix btmtk.c undefined reference build error") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent f0c83a2 commit 61f7a8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/bluetooth/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ config BT_ATH3K
413413
config BT_MTKSDIO
414414
tristate "MediaTek HCI SDIO driver"
415415
depends on MMC
416+
depends on USB || !BT_HCIBTUSB_MTK
416417
select BT_MTK
417418
help
418419
MediaTek Bluetooth HCI SDIO driver.
@@ -425,6 +426,7 @@ config BT_MTKSDIO
425426
config BT_MTKUART
426427
tristate "MediaTek HCI UART driver"
427428
depends on SERIAL_DEV_BUS
429+
depends on USB || !BT_HCIBTUSB_MTK
428430
select BT_MTK
429431
help
430432
MediaTek Bluetooth HCI UART driver.

0 commit comments

Comments
 (0)