Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
- static const SIMPLE_DEV_PM_OPS(rtlwifi_pm_ops, rtl_pci_suspend, rtl_pci_resume)
- #endif
- #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))
- compat_pci_suspend(rtl_pci_suspend)
- compat_pci_resume(rtl_pci_resume)
- #endif
- static struct pci_driver rtl92ce_driver = {
- .name = KBUILD_MODNAME,
- .id_table = rtl92ce_pci_ids,
- .probe = rtl_pci_probe,
- .remove = rtl_pci_disconnect,
- #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
- .driver.pm = &rtlwifi_pm_ops,
- #elif defined(CONFIG_PM)
- .suspend = rtl_pci_suspend_compat,
- .resume = rtl_pci_resume_compat,
- #endif
- };
- static int __init rtl92ce_module_init(void)
- {
- int ret;
- ret = pci_register_driver(&rtl92ce_driver);
- if (ret)
- RT_ASSERT(false, (": No device found\n"));
- return ret;
- }
- static void __exit rtl92ce_module_exit(void)
- {
- pci_unregister_driver(&rtl92ce_driver);
- }
- module_init(rtl92ce_module_init);
- module_exit(rtl92ce_module_exit);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement