diff options
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/Makefile | 2 | ||||
-rw-r--r-- | drivers/bluetooth/btmrvl_sdio.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/bluetooth/Makefile b/drivers/bluetooth/Makefile index 8f0e8d8..9b8bda8 100644 --- a/drivers/bluetooth/Makefile +++ b/drivers/bluetooth/Makefile @@ -30,7 +30,7 @@ obj-$(CPTCFG_BT_HCIUART_NOKIA) += hci_nokia.o obj-$(CPTCFG_BT_HCIRSI) += btrsi.o btmrvl-y := btmrvl_main.o -btmrvl-$(CONFIG_DEBUG_FS) += btmrvl_debugfs.o +btmrvl-$(CPTCFG_DEBUG_FS) += btmrvl_debugfs.o hci_uart-y := hci_ldisc.o hci_uart-$(CPTCFG_BT_HCIUART_SERDEV) += hci_serdev.o diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index 888bac4..26ea804 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b/drivers/bluetooth/btmrvl_sdio.c @@ -1310,6 +1310,7 @@ rdwr_status btmrvl_sdio_rdwr_firmware(struct btmrvl_private *priv, return RDWR_STATUS_SUCCESS; } +#if LINUX_VERSION_IS_GEQ(4,16,0) /* This function dump sdio register and memory data */ static void btmrvl_sdio_coredump(struct device *dev) { @@ -1493,6 +1494,7 @@ done: dev_coredumpv(&card->func->dev, fw_dump_data, fw_dump_len, GFP_KERNEL); BT_INFO("== btmrvl firmware dump to /sys/class/devcoredump end"); } +#endif static int btmrvl_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id) @@ -1721,7 +1723,9 @@ static struct sdio_driver bt_mrvl_sdio = { .remove = btmrvl_sdio_remove, .drv = { .owner = THIS_MODULE, +#if LINUX_VERSION_IS_GEQ(4,16,0) .coredump = btmrvl_sdio_coredump, +#endif .pm = &btmrvl_sdio_pm_ops, } }; |