Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215282
b: refs/heads/master
c: 674f305
h: refs/heads/master
v: v3
  • Loading branch information
Ohad Ben-Cohen authored and Luciano Coelho committed Oct 8, 2010
1 parent a919c78 commit c95b65f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 00cbb3c5317d418c349c60876fe12fba7624f3e7
refs/heads/master: 674f3058c806ae2591b98f59194fa85b650aa667
20 changes: 20 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1271_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,31 @@ static void __devexit wl1271_remove(struct sdio_func *func)
wl1271_free_hw(wl);
}

static int wl1271_suspend(struct device *dev)
{
/* Tell MMC/SDIO core it's OK to power down the card
* (if it isn't already), but not to remove it completely */
return 0;
}

static int wl1271_resume(struct device *dev)
{
return 0;
}

static const struct dev_pm_ops wl1271_sdio_pm_ops = {
.suspend = wl1271_suspend,
.resume = wl1271_resume,
};

static struct sdio_driver wl1271_sdio_driver = {
.name = "wl1271_sdio",
.id_table = wl1271_devices,
.probe = wl1271_probe,
.remove = __devexit_p(wl1271_remove),
.drv = {
.pm = &wl1271_sdio_pm_ops,
},
};

static int __init wl1271_init(void)
Expand Down

0 comments on commit c95b65f

Please sign in to comment.