diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2011-10-11 22:28:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-10-14 14:48:14 -0400 |
commit | 603be3885b9d518ff4822b357e2687b6ff02f1ac (patch) | |
tree | 69b87f3878235bd1e5032cfba9ccdc5a37e80130 /drivers/net/wireless/rtlwifi/rtl8192se/sw.c | |
parent | 7f2a5e214d3f8daf1e9a5ad021c74528f970e673 (diff) |
rtlwifi: Change PCI drivers to use the new PM framework
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192se/sw.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192se/sw.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/sw.c b/drivers/net/wireless/rtlwifi/rtl8192se/sw.c index cdaded0fbb8f..d2dad538bb26 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192se/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192se/sw.c | |||
@@ -401,17 +401,21 @@ MODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 0)\n"); | |||
401 | MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 1)\n"); | 401 | MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 1)\n"); |
402 | MODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)"); | 402 | MODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)"); |
403 | 403 | ||
404 | static const struct dev_pm_ops rtlwifi_pm_ops = { | ||
405 | .suspend = rtl_pci_suspend, | ||
406 | .resume = rtl_pci_resume, | ||
407 | .freeze = rtl_pci_suspend, | ||
408 | .thaw = rtl_pci_resume, | ||
409 | .poweroff = rtl_pci_suspend, | ||
410 | .restore = rtl_pci_resume, | ||
411 | }; | ||
412 | |||
404 | static struct pci_driver rtl92se_driver = { | 413 | static struct pci_driver rtl92se_driver = { |
405 | .name = KBUILD_MODNAME, | 414 | .name = KBUILD_MODNAME, |
406 | .id_table = rtl92se_pci_ids, | 415 | .id_table = rtl92se_pci_ids, |
407 | .probe = rtl_pci_probe, | 416 | .probe = rtl_pci_probe, |
408 | .remove = rtl_pci_disconnect, | 417 | .remove = rtl_pci_disconnect, |
409 | 418 | .driver.pm = &rtlwifi_pm_ops, | |
410 | #ifdef CONFIG_PM | ||
411 | .suspend = rtl_pci_suspend, | ||
412 | .resume = rtl_pci_resume, | ||
413 | #endif | ||
414 | |||
415 | }; | 419 | }; |
416 | 420 | ||
417 | static int __init rtl92se_module_init(void) | 421 | static int __init rtl92se_module_init(void) |