summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wl18xx/io.c
diff options
context:
space:
mode:
authorIdo Yariv <ido@wizery.com>2012-06-19 23:48:23 +0200
committerLuciano Coelho <coelho@ti.com>2012-06-22 09:49:44 +0200
commitb0f0ad39e3d2716fe9ca6e50ce4cda87eb409ee0 (patch)
tree08e84e24d5ff77eced2eabc23d648c4240fe14f1 /drivers/net/wireless/ti/wl18xx/io.c
parentwlcore: Propagate errors from wl1271_raw_read32 (diff)
downloadlinux-b0f0ad39e3d2716fe9ca6e50ce4cda87eb409ee0.tar.xz
linux-b0f0ad39e3d2716fe9ca6e50ce4cda87eb409ee0.zip
wlcore: Propagate errors from wl1271_raw_write32
Propagate errors from wl1271_raw_write32 and request for recovery when appropriate. Also rename prefixes of wlcore functions which their prototypes had to be changed. Signed-off-by: Ido Yariv <ido@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx/io.c')
-rw-r--r--drivers/net/wireless/ti/wl18xx/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/io.c b/drivers/net/wireless/ti/wl18xx/io.c
index 92c2c03e4cd8..0c06ccfd1b8c 100644
--- a/drivers/net/wireless/ti/wl18xx/io.c
+++ b/drivers/net/wireless/ti/wl18xx/io.c
@@ -38,14 +38,14 @@ int wl18xx_top_reg_write(struct wl1271 *wl, int addr, u16 val)
goto out;
tmp = (tmp & 0xffff0000) | val;
- wl1271_write32(wl, addr, tmp);
+ ret = wlcore_write32(wl, addr, tmp);
} else {
ret = wlcore_read32(wl, addr - 2, &tmp);
if (ret < 0)
goto out;
tmp = (tmp & 0xffff) | (val << 16);
- wl1271_write32(wl, addr - 2, tmp);
+ ret = wlcore_write32(wl, addr - 2, tmp);
}
out: