diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/sdio.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/sdio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/sdio.c b/drivers/net/wireless/wl12xx/sdio.c index 92d29a860fc..536e5065454 100644 --- a/drivers/net/wireless/wl12xx/sdio.c +++ b/drivers/net/wireless/wl12xx/sdio.c | |||
@@ -330,6 +330,7 @@ static void __devexit wl1271_remove(struct sdio_func *func) | |||
330 | wl1271_free_hw(wl); | 330 | wl1271_free_hw(wl); |
331 | } | 331 | } |
332 | 332 | ||
333 | #ifdef CONFIG_PM | ||
333 | static int wl1271_suspend(struct device *dev) | 334 | static int wl1271_suspend(struct device *dev) |
334 | { | 335 | { |
335 | /* Tell MMC/SDIO core it's OK to power down the card | 336 | /* Tell MMC/SDIO core it's OK to power down the card |
@@ -385,15 +386,18 @@ static const struct dev_pm_ops wl1271_sdio_pm_ops = { | |||
385 | .suspend = wl1271_suspend, | 386 | .suspend = wl1271_suspend, |
386 | .resume = wl1271_resume, | 387 | .resume = wl1271_resume, |
387 | }; | 388 | }; |
389 | #endif | ||
388 | 390 | ||
389 | static struct sdio_driver wl1271_sdio_driver = { | 391 | static struct sdio_driver wl1271_sdio_driver = { |
390 | .name = "wl1271_sdio", | 392 | .name = "wl1271_sdio", |
391 | .id_table = wl1271_devices, | 393 | .id_table = wl1271_devices, |
392 | .probe = wl1271_probe, | 394 | .probe = wl1271_probe, |
393 | .remove = __devexit_p(wl1271_remove), | 395 | .remove = __devexit_p(wl1271_remove), |
396 | #ifdef CONFIG_PM | ||
394 | .drv = { | 397 | .drv = { |
395 | .pm = &wl1271_sdio_pm_ops, | 398 | .pm = &wl1271_sdio_pm_ops, |
396 | }, | 399 | }, |
400 | #endif | ||
397 | }; | 401 | }; |
398 | 402 | ||
399 | static int __init wl1271_init(void) | 403 | static int __init wl1271_init(void) |