diff options
author | Michael Buesch <mb@bu3sch.de> | 2008-03-29 19:10:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-08 15:05:57 -0400 |
commit | 8fe2b65a18e49bfde56a59ed4ab3fc7aa0c2f325 (patch) | |
tree | a813fe635b7a8c248c586de847d1501c4ccaab6b /drivers/net/wireless/b43 | |
parent | 5100d5ac81b9330dc57e35adbe50923ba6107b8f (diff) |
ssb: Turn suspend/resume upside down
Turn the SSB bus suspend mechanism upside down.
Instead of deciding by an internal reference count when to suspend/resume,
let the parent bus call us in their suspend/resume routine.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/pcmcia.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43/pcmcia.c b/drivers/net/wireless/b43/pcmcia.c index 371e4a119511..b8aa16307f79 100644 --- a/drivers/net/wireless/b43/pcmcia.c +++ b/drivers/net/wireless/b43/pcmcia.c | |||
@@ -43,14 +43,16 @@ MODULE_DEVICE_TABLE(pcmcia, b43_pcmcia_tbl); | |||
43 | #ifdef CONFIG_PM | 43 | #ifdef CONFIG_PM |
44 | static int b43_pcmcia_suspend(struct pcmcia_device *dev) | 44 | static int b43_pcmcia_suspend(struct pcmcia_device *dev) |
45 | { | 45 | { |
46 | //TODO | 46 | struct ssb_bus *ssb = dev->priv; |
47 | return 0; | 47 | |
48 | return ssb_bus_suspend(ssb); | ||
48 | } | 49 | } |
49 | 50 | ||
50 | static int b43_pcmcia_resume(struct pcmcia_device *dev) | 51 | static int b43_pcmcia_resume(struct pcmcia_device *dev) |
51 | { | 52 | { |
52 | //TODO | 53 | struct ssb_bus *ssb = dev->priv; |
53 | return 0; | 54 | |
55 | return ssb_bus_resume(ssb); | ||
54 | } | 56 | } |
55 | #else /* CONFIG_PM */ | 57 | #else /* CONFIG_PM */ |
56 | # define b43_pcmcia_suspend NULL | 58 | # define b43_pcmcia_suspend NULL |