diff options
author | sangamanatha <sangam.swamy@samsung.com> | 2012-05-10 07:14:34 +0900 |
---|---|---|
committer | sangamanatha <sangam.swamy@samsung.com> | 2012-05-10 10:33:22 +0900 |
commit | 3ac736070c32c828f0bb797ad1015eb723ac1528 (patch) | |
tree | d02256fc358b2fbf592b3290120977cc4b8c684f | |
parent | 36c97064196c4549f7f5353fdce970d62b4795f9 (diff) | |
download | kernel_samsung_crespo-3ac736070c32c828f0bb797ad1015eb723ac1528.zip kernel_samsung_crespo-3ac736070c32c828f0bb797ad1015eb723ac1528.tar.gz kernel_samsung_crespo-3ac736070c32c828f0bb797ad1015eb723ac1528.tar.bz2 |
net: wimax: suspend and resume issue in JB
Added suspend and resume handlers in wimax driver.
This will avoid sdio power off during suspend.
Signed-off-by: sangamanatha <sangam.swamy@samsung.com>
-rwxr-xr-x | drivers/net/wimax/cmc7xx/wimax_sdio.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wimax/cmc7xx/wimax_sdio.c b/drivers/net/wimax/cmc7xx/wimax_sdio.c index a532c4e..99830da 100755 --- a/drivers/net/wimax/cmc7xx/wimax_sdio.c +++ b/drivers/net/wimax/cmc7xx/wimax_sdio.c @@ -705,12 +705,30 @@ int wimax_resume(struct platform_device *pdev) mutex_unlock(&pdata->g_cfg->suspend_mutex); return 0; } +static int adapter_suspend(struct device *dev) +{ + pr_debug("adapter_suspend sdio"); + return 0; +} + +static int adapter_resume(struct device *dev) +{ + pr_debug("adapter_resume sdio"); + return 0; +} +static const struct dev_pm_ops adapter_pm_ops = { + .suspend = adapter_suspend, + .resume = adapter_resume, +}; static struct sdio_driver adapter_driver = { .name = "C730SDIO", .probe = adapter_probe, .remove = adapter_remove, .id_table = adapter_table, + .drv = { + .pm = &adapter_pm_ops, + }, }; static int wimax_probe(struct platform_device *pdev) |