wl1271: sdio: enable runtime PM
authorOhad Ben-Cohen <ohad@wizery.com>
Fri, 8 Oct 2010 13:16:16 +0000 (16:16 +0300)
committerLuciano Coelho <luciano.coelho@nokia.com>
Fri, 8 Oct 2010 13:16:16 +0000 (16:16 +0300)
commit00cbb3c5317d418c349c60876fe12fba7624f3e7
treeb25530e4570eae3cc585039bd08a0dc08d8d087d
parent15a6321d1c0f8db561932cd99e1b9897981da71f
wl1271: sdio: enable runtime PM

Enable runtime PM for the wl1271 SDIO device.

We request power whenever the WLAN interface is brought up,
and release it after the WLAN interface is taken down.

As a result, power is released immediately after probe returns,
since at that point power has not been explicitly requested yet
(i.e. the WLAN interface is still down).

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Acked-by: Luciano Coelho <luciano.coelho@nokia.com>
Tested-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
drivers/net/wireless/wl12xx/wl1271_sdio.c