Skip to content

Commit 05e89fb

Browse files
arndbholtmann
authored andcommitted
Bluetooth: BT_HCIUART now depends on SERIAL_DEV_BUS
It is no longer possible to build BT_HCIUART into the kernel when SERIAL_DEV_BUS is a loadable module, even if none of the SERIAL_DEV_BUS based implementations are selected: drivers/bluetooth/hci_ldisc.o: In function `hci_uart_set_flow_control': hci_ldisc.c:(.text+0xb40): undefined reference to `serdev_device_set_flow_control' hci_ldisc.c:(.text+0xb5c): undefined reference to `serdev_device_set_tiocm' This adds a dependency to avoid the broken configuration. Fixes: 7841d55 ("Bluetooth: hci_uart_set_flow_control: Fix NULL deref when using serdev") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 81a1905 commit 05e89fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bluetooth/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ config BT_HCIBTSDIO
6565

6666
config BT_HCIUART
6767
tristate "HCI UART driver"
68+
depends on SERIAL_DEV_BUS || !SERIAL_DEV_BUS
6869
depends on TTY
6970
help
7071
Bluetooth HCI UART driver.
@@ -79,7 +80,6 @@ config BT_HCIUART
7980
config BT_HCIUART_SERDEV
8081
bool
8182
depends on SERIAL_DEV_BUS && BT_HCIUART
82-
depends on SERIAL_DEV_BUS=y || SERIAL_DEV_BUS=BT_HCIUART
8383
default y
8484

8585
config BT_HCIUART_H4

0 commit comments

Comments
 (0)