Bluetooth: hci_mrvl: use maybe_unused macro for device tree ids
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Mon, 13 Feb 2023 12:09:24 +0000 (13:09 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 24 Apr 2023 04:45:14 +0000 (21:45 -0700)
Use the maybe_unused macro for the device tree ids instead of #ifdef
CONFIG_OF. This makes it easier to add support for new devices.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_mrvl.c

index fbc3f7c3a5c710c0493a66111b7a7dedb7d664fd..eaa9c51cacfa2bc6cf4f01153ccf5b6183d785df 100644 (file)
@@ -414,13 +414,11 @@ static void mrvl_serdev_remove(struct serdev_device *serdev)
        hci_uart_unregister_device(&mrvldev->hu);
 }
 
-#ifdef CONFIG_OF
-static const struct of_device_id mrvl_bluetooth_of_match[] = {
+static const struct of_device_id __maybe_unused mrvl_bluetooth_of_match[] = {
        { .compatible = "mrvl,88w8897" },
        { },
 };
 MODULE_DEVICE_TABLE(of, mrvl_bluetooth_of_match);
-#endif
 
 static struct serdev_device_driver mrvl_serdev_driver = {
        .probe = mrvl_serdev_probe,