From 29b22f66620e8d75a5a77b3c90b884eb668efb47 Mon Sep 17 00:00:00 2001 From: Florian Leeber Date: Mon, 14 Dec 2020 00:00:29 +0100 Subject: [PATCH] Disable rfkill for BT driver --- drivers/bluetooth/Makefile | 2 +- drivers/bluetooth/bluetooth-power.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/bluetooth/Makefile b/drivers/bluetooth/Makefile index 1151d0d17bf6..b8c10b74ba51 100644 --- a/drivers/bluetooth/Makefile +++ b/drivers/bluetooth/Makefile @@ -43,4 +43,4 @@ hci_uart-$(CONFIG_BT_HCIUART_BCM) += hci_bcm.o hci_uart-$(CONFIG_BT_HCIUART_QCA) += hci_qca.o hci_uart-objs := $(hci_uart-y) -ccflags-y += -D__CHECK_ENDIAN__ +ccflags-y += -D__CHECK_ENDIAN__ -Wno-unused-function diff --git a/drivers/bluetooth/bluetooth-power.c b/drivers/bluetooth/bluetooth-power.c index 99c18e3d66d7..808cf1244eb2 100644 --- a/drivers/bluetooth/bluetooth-power.c +++ b/drivers/bluetooth/bluetooth-power.c @@ -643,9 +643,6 @@ static int bt_power_probe(struct platform_device *pdev) goto free_pdata; } - if (bluetooth_power_rfkill_probe(pdev) < 0) - goto free_pdata; - btpdev = pdev; return 0;