From: Sebastian Reichel Date: Tue, 28 Mar 2017 15:59:37 +0000 (+0200) Subject: Bluetooth: hci_serdev: allow modular drivers X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=081f36a8c2e0ae56f33ba6b12389b290a49b6508;p=openwrt%2Fstaging%2Fblogic.git Bluetooth: hci_serdev: allow modular drivers For bluetooth protocol driver only supporting serdev it makes sense to follow common practice and built them into their own module. Such modules need access to hci_uart_register_device and hci_uart_tx_wakeup for using the common protocol helpers. Signed-off-by: Sebastian Reichel Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 0ec8a94bd712..17bcbc13623f 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c @@ -134,6 +134,7 @@ int hci_uart_tx_wakeup(struct hci_uart *hu) return 0; } +EXPORT_SYMBOL_GPL(hci_uart_tx_wakeup); static void hci_uart_write_work(struct work_struct *work) { diff --git a/drivers/bluetooth/hci_serdev.c b/drivers/bluetooth/hci_serdev.c index 3b8ac0ece3fb..7de0edc0ff8c 100644 --- a/drivers/bluetooth/hci_serdev.c +++ b/drivers/bluetooth/hci_serdev.c @@ -353,3 +353,4 @@ err_alloc: p->close(hu); return err; } +EXPORT_SYMBOL_GPL(hci_uart_register_device);