diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-08-07 15:46:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-08-10 15:26:59 -0400 |
commit | 450e9038ee65e3246b2a942669fc79001466f9be (patch) | |
tree | 53545b636c369a293f6576ad8d108c48dc27a173 /drivers/net/wireless/iwlegacy | |
parent | 2f9279b5568c4de8c37566f11e7c26292a3f4bf2 (diff) |
iwlegacy: clean up suspend/resume
There's no need to export the il_pci_suspend
and il_pci_resume functions since they're only
referenced from il_pm_ops. The latter can also
be defined using SIMPLE_DEV_PM_OPS instead of
open-coding it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy')
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.c | 15 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.h | 2 |
2 files changed, 3 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c index 0370403fd0bd..eb9987520d61 100644 --- a/drivers/net/wireless/iwlegacy/common.c +++ b/drivers/net/wireless/iwlegacy/common.c | |||
@@ -4860,7 +4860,7 @@ EXPORT_SYMBOL(il_add_beacon_time); | |||
4860 | 4860 | ||
4861 | #ifdef CONFIG_PM | 4861 | #ifdef CONFIG_PM |
4862 | 4862 | ||
4863 | int | 4863 | static int |
4864 | il_pci_suspend(struct device *device) | 4864 | il_pci_suspend(struct device *device) |
4865 | { | 4865 | { |
4866 | struct pci_dev *pdev = to_pci_dev(device); | 4866 | struct pci_dev *pdev = to_pci_dev(device); |
@@ -4877,9 +4877,8 @@ il_pci_suspend(struct device *device) | |||
4877 | 4877 | ||
4878 | return 0; | 4878 | return 0; |
4879 | } | 4879 | } |
4880 | EXPORT_SYMBOL(il_pci_suspend); | ||
4881 | 4880 | ||
4882 | int | 4881 | static int |
4883 | il_pci_resume(struct device *device) | 4882 | il_pci_resume(struct device *device) |
4884 | { | 4883 | { |
4885 | struct pci_dev *pdev = to_pci_dev(device); | 4884 | struct pci_dev *pdev = to_pci_dev(device); |
@@ -4906,16 +4905,8 @@ il_pci_resume(struct device *device) | |||
4906 | 4905 | ||
4907 | return 0; | 4906 | return 0; |
4908 | } | 4907 | } |
4909 | EXPORT_SYMBOL(il_pci_resume); | ||
4910 | 4908 | ||
4911 | const struct dev_pm_ops il_pm_ops = { | 4909 | SIMPLE_DEV_PM_OPS(il_pm_ops, il_pci_suspend, il_pci_resume); |
4912 | .suspend = il_pci_suspend, | ||
4913 | .resume = il_pci_resume, | ||
4914 | .freeze = il_pci_suspend, | ||
4915 | .thaw = il_pci_resume, | ||
4916 | .poweroff = il_pci_suspend, | ||
4917 | .restore = il_pci_resume, | ||
4918 | }; | ||
4919 | EXPORT_SYMBOL(il_pm_ops); | 4910 | EXPORT_SYMBOL(il_pm_ops); |
4920 | 4911 | ||
4921 | #endif /* CONFIG_PM */ | 4912 | #endif /* CONFIG_PM */ |
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h index 5f5017767b99..3d3135ed62d7 100644 --- a/drivers/net/wireless/iwlegacy/common.h +++ b/drivers/net/wireless/iwlegacy/common.h | |||
@@ -1845,8 +1845,6 @@ __le32 il_add_beacon_time(struct il_priv *il, u32 base, u32 addon, | |||
1845 | u32 beacon_interval); | 1845 | u32 beacon_interval); |
1846 | 1846 | ||
1847 | #ifdef CONFIG_PM | 1847 | #ifdef CONFIG_PM |
1848 | int il_pci_suspend(struct device *device); | ||
1849 | int il_pci_resume(struct device *device); | ||
1850 | extern const struct dev_pm_ops il_pm_ops; | 1848 | extern const struct dev_pm_ops il_pm_ops; |
1851 | 1849 | ||
1852 | #define IL_LEGACY_PM_OPS (&il_pm_ops) | 1850 | #define IL_LEGACY_PM_OPS (&il_pm_ops) |