]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit47f2f421ddc75e976ea88edcecd59ef02c731380
treeb25530e4570eae3cc585039bd08a0dc08d8d087d
parentf0ba453949adfd9aad402e5bd0bd15f7caf8f075
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