projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd15598
)
iwlagn: use PM ops macro
author
Johannes Berg
<johannes.berg@intel.com>
Tue, 21 Jun 2011 11:30:56 +0000
(
04:30
-0700)
committer
Wey-Yi Guy
<wey-yi.w.guy@intel.com>
Fri, 24 Jun 2011 18:54:22 +0000
(11:54 -0700)
Simplify the code and use SIMPLE_DEV_PM_OPS
to define iwl_dev_pm_ops instead of doing the
same thing manually.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-pci.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/iwl-pci.c
b/drivers/net/wireless/iwlwifi/iwl-pci.c
index 7328fbff7f7b011189aaf8073bd690e0bc8f5a76..3927c802a5d8f3f158ac0b1111bc964825e5635a 100644
(file)
--- a/
drivers/net/wireless/iwlwifi/iwl-pci.c
+++ b/
drivers/net/wireless/iwlwifi/iwl-pci.c
@@
-530,14
+530,7
@@
static int iwl_pci_resume(struct device *device)
return iwl_resume(priv);
}
-static const struct dev_pm_ops iwl_dev_pm_ops = {
- .suspend = iwl_pci_suspend,
- .resume = iwl_pci_resume,
- .freeze = iwl_pci_suspend,
- .thaw = iwl_pci_resume,
- .poweroff = iwl_pci_suspend,
- .restore = iwl_pci_resume,
-};
+static SIMPLE_DEV_PM_OPS(iwl_dev_pm_ops, iwl_pci_suspend, iwl_pci_resume);
#define IWL_PM_OPS (&iwl_dev_pm_ops)