aboutsummaryrefslogtreecommitdiffstats
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 b120794c03a9..a802c65c3534 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)
951 if (p_dev->state & (CLIENT_UNBOUND|CLIENT_STALE)) 951 if (p_dev->state & (CLIENT_UNBOUND|CLIENT_STALE))
952 return 0; 952 return 0;
953 953
954 if ((data->event == CS_EVENT_PM_SUSPEND) ||
955 (data->event == CS_EVENT_RESET_PHYSICAL)) {
956 if (p_drv->suspend)
957 return p_drv->suspend(p_dev);
958 } else if ((data->event == CS_EVENT_PM_RESUME) ||
959 (data->event == CS_EVENT_CARD_RESET)) {
960 if (p_drv->resume)
961 return p_drv->resume(p_dev);
962 }
963
954 if (p_drv->event) 964 if (p_drv->event)
955 return p_drv->event(data->event, data->priority, 965 return p_drv->event(data->event, data->priority,
956 &p_dev->event_callback_args); 966 &p_dev->event_callback_args);