diff options
Diffstat (limited to 'drivers/pcmcia/omap_cf.c')
| -rw-r--r-- | drivers/pcmcia/omap_cf.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/pcmcia/omap_cf.c b/drivers/pcmcia/omap_cf.c index 94be9e51654e..2558c3cc91ec 100644 --- a/drivers/pcmcia/omap_cf.c +++ b/drivers/pcmcia/omap_cf.c | |||
| @@ -329,27 +329,13 @@ static int __devexit omap_cf_remove(struct device *dev) | |||
| 329 | return 0; | 329 | return 0; |
| 330 | } | 330 | } |
| 331 | 331 | ||
| 332 | static int omap_cf_suspend(struct device *dev, pm_message_t mesg, u32 level) | ||
| 333 | { | ||
| 334 | if (level != SUSPEND_SAVE_STATE) | ||
| 335 | return 0; | ||
| 336 | return pcmcia_socket_dev_suspend(dev, mesg); | ||
| 337 | } | ||
| 338 | |||
| 339 | static int omap_cf_resume(struct device *dev, u32 level) | ||
| 340 | { | ||
| 341 | if (level != RESUME_RESTORE_STATE) | ||
| 342 | return 0; | ||
| 343 | return pcmcia_socket_dev_resume(dev); | ||
| 344 | } | ||
| 345 | |||
| 346 | static struct device_driver omap_cf_driver = { | 332 | static struct device_driver omap_cf_driver = { |
| 347 | .name = (char *) driver_name, | 333 | .name = (char *) driver_name, |
| 348 | .bus = &platform_bus_type, | 334 | .bus = &platform_bus_type, |
| 349 | .probe = omap_cf_probe, | 335 | .probe = omap_cf_probe, |
| 350 | .remove = __devexit_p(omap_cf_remove), | 336 | .remove = __devexit_p(omap_cf_remove), |
| 351 | .suspend = omap_cf_suspend, | 337 | .suspend = pcmcia_socket_dev_suspend, |
| 352 | .resume = omap_cf_resume, | 338 | .resume = pcmcia_socket_dev_resume, |
| 353 | }; | 339 | }; |
| 354 | 340 | ||
| 355 | static int __init omap_cf_init(void) | 341 | static int __init omap_cf_init(void) |
