--- a/drivers/net/wireless/mwifiex/sdio.c +++ b/drivers/net/wireless/mwifiex/sdio.c @@ -183,8 +183,10 @@ mwifiex_sdio_remove(struct sdio_func *fu wait_for_completion(&adapter->fw_load); if (user_rmmod) { +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) if (adapter->is_suspended) mwifiex_sdio_resume(adapter->dev); +#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) */ for (i = 0; i < adapter->priv_num; i++) if ((GET_BSS_ROLE(adapter->priv[i]) == @@ -201,6 +203,7 @@ mwifiex_sdio_remove(struct sdio_func *fu kfree(card); } +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) /* * SDIO suspend. * @@ -255,6 +258,7 @@ static int mwifiex_sdio_suspend(struct d return ret; } +#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) */ /* Device ID for SD8786 */ #define SDIO_DEVICE_ID_MARVELL_8786 (0x9116) @@ -280,10 +284,12 @@ static const struct sdio_device_id mwifi MODULE_DEVICE_TABLE(sdio, mwifiex_ids); +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) static const struct dev_pm_ops mwifiex_sdio_pm_ops = { .suspend = mwifiex_sdio_suspend, .resume = mwifiex_sdio_resume, }; +#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) */ static struct sdio_driver mwifiex_sdio = { .name = "mwifiex_sdio", @@ -292,7 +298,9 @@ static struct sdio_driver mwifiex_sdio = .remove = mwifiex_sdio_remove, .drv = { .owner = THIS_MODULE, +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) .pm = &mwifiex_sdio_pm_ops, +#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) */ } };