2023-05-18 07:01:43

by Neeraj Sanjay Kale

[permalink] [raw]
Subject: [PATCH v1] Bluetooth: btnxpuart: Fix compiler warnings

This fixes a compiler warning reported by kernel test robot.

Signed-off-by: Neeraj Sanjay Kale <[email protected]>
Reported-by: kernel test robot <[email protected]>
Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
---
drivers/bluetooth/btnxpuart.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c
index 5f641466d695..fa6ac4dacd1d 100644
--- a/drivers/bluetooth/btnxpuart.c
+++ b/drivers/bluetooth/btnxpuart.c
@@ -1264,6 +1264,7 @@ static void nxp_serdev_remove(struct serdev_device *serdev)
hci_free_dev(hdev);
}

+#ifdef CONFIG_OF
static struct btnxpuart_data w8987_data = {
.fw_download_3M_baudrate = true,
.fw_name = FIRMWARE_W8987,
@@ -1280,6 +1281,7 @@ static const struct of_device_id nxpuart_of_match_table[] = {
{ }
};
MODULE_DEVICE_TABLE(of, nxpuart_of_match_table);
+#endif

static struct serdev_device_driver nxp_serdev_driver = {
.probe = nxp_serdev_probe,
--
2.34.1