Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: btmrvl_sdio: mark OF related data as maybe unused

The driver can be compile tested with !CONFIG_OF making certain data
unused:

drivers/bluetooth/btmrvl_sdio.c:43:34: error:
‘btmrvl_sdio_of_match_table’ defined but not used
[-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Krzysztof Kozlowski and committed by
Luiz Augusto von Dentz
04909d7b cd97d47f

+1 -1
+1 -1
drivers/bluetooth/btmrvl_sdio.c
··· 40 40 {"EXTLAST", NULL, 0, 0xFE}, 41 41 }; 42 42 43 - static const struct of_device_id btmrvl_sdio_of_match_table[] = { 43 + static const struct of_device_id btmrvl_sdio_of_match_table[] __maybe_unused = { 44 44 { .compatible = "marvell,sd8897-bt" }, 45 45 { .compatible = "marvell,sd8997-bt" }, 46 46 { }