Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- patches/29-sdio_no_suspend.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/patches/29-sdio_no_suspend.patch b/patches/29-sdio_no_suspend.patch index 4d4986c..2a47d37 100644 --- a/patches/29-sdio_no_suspend.patch +++ b/patches/29-sdio_no_suspend.patch @@ -169,3 +169,31 @@ suspend and resume that are not backported. .drv = { .pm = &brcmf_sdio_pm_ops, }, +--- a/drivers/bluetooth/btmrvl_sdio.c ++++ b/drivers/bluetooth/btmrvl_sdio.c +@@ -1049,6 +1049,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); +@@ -1144,6 +1145,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", +@@ -1152,7 +1154,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 + } + }; + -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html