summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/btmrvl_sdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bluetooth/btmrvl_sdio.c')
-rw-r--r--drivers/bluetooth/btmrvl_sdio.c4
1 files changed, 4 insertions, 0 deletions
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,
}
};