summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/ds.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r--drivers/pcmcia/ds.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c
index b120794c03a..a802c65c353 100644
--- a/drivers/pcmcia/ds.c
+++ b/drivers/pcmcia/ds.c
@@ -951,6 +951,16 @@ static int send_event_callback(struct device *dev, void * _data)
if (p_dev->state & (CLIENT_UNBOUND|CLIENT_STALE))
return 0;
+ if ((data->event == CS_EVENT_PM_SUSPEND) ||
+ (data->event == CS_EVENT_RESET_PHYSICAL)) {
+ if (p_drv->suspend)
+ return p_drv->suspend(p_dev);
+ } else if ((data->event == CS_EVENT_PM_RESUME) ||
+ (data->event == CS_EVENT_CARD_RESET)) {
+ if (p_drv->resume)
+ return p_drv->resume(p_dev);
+ }
+
if (p_drv->event)
return p_drv->event(data->event, data->priority,
&p_dev->event_callback_args);