|
@@ -841,6 +841,7 @@ static void h5_serdev_remove(struct serdev_device *serdev)
|
|
hci_uart_unregister_device(&h5->serdev_hu);
|
|
hci_uart_unregister_device(&h5->serdev_hu);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifdef CONFIG_BT_HCIUART_RTL
|
|
static int h5_btrtl_setup(struct h5 *h5)
|
|
static int h5_btrtl_setup(struct h5 *h5)
|
|
{
|
|
{
|
|
struct btrtl_device_info *btrtl_dev;
|
|
struct btrtl_device_info *btrtl_dev;
|
|
@@ -922,10 +923,13 @@ static struct h5_vnd rtl_vnd = {
|
|
.close = h5_btrtl_close,
|
|
.close = h5_btrtl_close,
|
|
.acpi_gpio_map = acpi_btrtl_gpios,
|
|
.acpi_gpio_map = acpi_btrtl_gpios,
|
|
};
|
|
};
|
|
|
|
+#endif
|
|
|
|
|
|
#ifdef CONFIG_ACPI
|
|
#ifdef CONFIG_ACPI
|
|
static const struct acpi_device_id h5_acpi_match[] = {
|
|
static const struct acpi_device_id h5_acpi_match[] = {
|
|
|
|
+#ifdef CONFIG_BT_HCIUART_RTL
|
|
{ "OBDA8723", (kernel_ulong_t)&rtl_vnd },
|
|
{ "OBDA8723", (kernel_ulong_t)&rtl_vnd },
|
|
|
|
+#endif
|
|
{ },
|
|
{ },
|
|
};
|
|
};
|
|
MODULE_DEVICE_TABLE(acpi, h5_acpi_match);
|
|
MODULE_DEVICE_TABLE(acpi, h5_acpi_match);
|