pmaports/device/unmaintained/linux-oneplus-msm8998-downstream/0004-disable-interfering-bt_power-rfkill.patch
Jami Kettunen b1914ddb10
linux-oneplus-msm8998: move to unmaintained (MR 3336)
The downstream kernel has barely any functionality without libhybris
(which is not coming back to pmOS) so move everything related to the
OnePlus 5/5T downstream ports to downstream since a working mainline
port is much more feature rich.
2022-08-06 16:42:34 +01:00

23 lines
773 B
Diff

--- 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..51d53048e629 100644
--- a/drivers/bluetooth/bluetooth-power.c
+++ b/drivers/bluetooth/bluetooth-power.c
@@ -643,8 +643,8 @@ static int bt_power_probe(struct platform_device *pdev)
goto free_pdata;
}
- if (bluetooth_power_rfkill_probe(pdev) < 0)
- goto free_pdata;
+// if (bluetooth_power_rfkill_probe(pdev) < 0)
+// goto free_pdata;
btpdev = pdev;