This patch adds the compatbility flags, so the Rockchip Bluetooth can be referenced in the device tree Signed-off-by: David Summers <beagleboard@xxxxxxxxxxxxxxxxxxx> --- drivers/bluetooth/btrtl.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c index 7f9ea8e4c1b2..4cc89c9fe371 100644 --- a/drivers/bluetooth/btrtl.c +++ b/drivers/bluetooth/btrtl.c @@ -20,6 +20,8 @@ #include <asm/unaligned.h> #include <linux/usb.h> +#include <linux/of.h> + #include <net/bluetooth/bluetooth.h> #include <net/bluetooth/hci_core.h> @@ -743,6 +745,21 @@ int btrtl_get_uart_settings(struct hci_dev *hdev, } EXPORT_SYMBOL_GPL(btrtl_get_uart_settings); +static const struct of_device_id hci_rtl_of_match[] = { + { .compatible = "realtek,rtl8723a" }, + { .compatible = "realtek,rtl8723bs" }, + { .compatible = "realtek,rtl8723b" }, + { .compatible = "realtek,rtl8723d" }, + { .compatible = "realtek,rtl8723ds" }, + { .compatible = "realtek,rtl8821a" }, + { .compatible = "realtek,rtl8821c" }, + { .compatible = "realtek,rtl8761a" }, + { .compatible = "realtek,rtl8822b" }, + {}, +}; +MODULE_DEVICE_TABLE(of, hci_rtl_of_match); + + MODULE_AUTHOR("Daniel Drake <drake@xxxxxxxxxxxx>"); MODULE_DESCRIPTION("Bluetooth support for Realtek devices ver " VERSION); MODULE_VERSION(VERSION); -- beagleboard@xxxxxxxxxxxxxxxxxxx