blob: 44bcd4f87c635cbdfe1095889d594d0a1545deea [file] [log] [blame]
--- a/drivers/bluetooth/btmrvl_sdio.c
+++ b/drivers/bluetooth/btmrvl_sdio.c
@@ -1082,6 +1082,7 @@ static void btmrvl_sdio_remove(struct sd
}
}
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
static int btmrvl_sdio_suspend(struct device *dev)
{
struct sdio_func *func = dev_to_sdio_func(dev);
@@ -1177,6 +1178,7 @@ static const struct dev_pm_ops btmrvl_sd
.suspend = btmrvl_sdio_suspend,
.resume = btmrvl_sdio_resume,
};
+#endif
static struct sdio_driver bt_mrvl_sdio = {
.name = "btmrvl_sdio",
@@ -1185,7 +1187,9 @@ static struct sdio_driver bt_mrvl_sdio =
.remove = btmrvl_sdio_remove,
.drv = {
.owner = THIS_MODULE,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
.pm = &btmrvl_sdio_pm_ops,
+#endif
}
};