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;