diff options
author | Alex Dubov <oakad@yahoo.com> | 2008-03-10 14:43:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-03-10 21:01:18 -0400 |
commit | d114ad54ffb020dc781b6159c1c2f391c6ec418f (patch) | |
tree | fbb4d6c263583bf3ec5de167124fd87cd28c2914 /drivers/memstick/host | |
parent | e1f19995f55294fbb00ea22ba85d7b0d80ba3813 (diff) |
memstick: add memstick_suspend/resume_host methods
Bus driver may need to be informed that host is being suspended/resumed.
Signed-off-by: Alex Dubov <oakad@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/memstick/host')
-rw-r--r-- | drivers/memstick/host/tifm_ms.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/memstick/host/tifm_ms.c b/drivers/memstick/host/tifm_ms.c index 5b5bd61b3a4a..8b1c102fc317 100644 --- a/drivers/memstick/host/tifm_ms.c +++ b/drivers/memstick/host/tifm_ms.c | |||
@@ -627,17 +627,17 @@ static void tifm_ms_remove(struct tifm_dev *sock) | |||
627 | 627 | ||
628 | static int tifm_ms_suspend(struct tifm_dev *sock, pm_message_t state) | 628 | static int tifm_ms_suspend(struct tifm_dev *sock, pm_message_t state) |
629 | { | 629 | { |
630 | struct memstick_host *msh = tifm_get_drvdata(sock); | ||
631 | |||
632 | memstick_suspend_host(msh); | ||
630 | return 0; | 633 | return 0; |
631 | } | 634 | } |
632 | 635 | ||
633 | static int tifm_ms_resume(struct tifm_dev *sock) | 636 | static int tifm_ms_resume(struct tifm_dev *sock) |
634 | { | 637 | { |
635 | struct memstick_host *msh = tifm_get_drvdata(sock); | 638 | struct memstick_host *msh = tifm_get_drvdata(sock); |
636 | struct tifm_ms *host = memstick_priv(msh); | ||
637 | |||
638 | tifm_ms_initialize_host(host); | ||
639 | memstick_detect_change(msh); | ||
640 | 639 | ||
640 | memstick_resume_host(msh); | ||
641 | return 0; | 641 | return 0; |
642 | } | 642 | } |
643 | 643 | ||