git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wl12xx: Fix validation of pm_runtime_get_sync return value
[pandora-kernel.git]
/
drivers
/
net
/
wireless
/
wl12xx
/
sdio.c
diff --git
a/drivers/net/wireless/wl12xx/sdio.c
b/drivers/net/wireless/wl12xx/sdio.c
index
5cf18c2
..
fb1fd5a
100644
(file)
--- a/
drivers/net/wireless/wl12xx/sdio.c
+++ b/
drivers/net/wireless/wl12xx/sdio.c
@@
-164,7
+164,7
@@
static int wl1271_sdio_power_on(struct wl1271 *wl)
/* If enabled, tell runtime PM not to power off the card */
if (pm_runtime_enabled(&func->dev)) {
ret = pm_runtime_get_sync(&func->dev);
- if (ret)
+ if (ret
< 0
)
goto out;
} else {
/* Runtime PM is disabled: power up the card manually */