Commit 4a90406b authored by Luciano Coelho's avatar Luciano Coelho Committed by John W. Linville

wl1271: remove workaround to ignore -EIO from radio and general params

We were ignoring the -EIO return value from wl1271_cmd_radio_params() and
wl1271_cmd_general_params(), because they were always returning an error and
we didn't know why.  Now this has been fixed, so the workaround can be
removed.
Signed-off-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: default avatarJuuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 98b5dd5d
...@@ -197,15 +197,12 @@ int wl1271_hw_init(struct wl1271 *wl) ...@@ -197,15 +197,12 @@ int wl1271_hw_init(struct wl1271 *wl)
{ {
int ret; int ret;
/* FIXME: the following parameter setting functions return error
* codes - the reason is so far unknown. The -EIO is therefore
* ignored for the time being. */
ret = wl1271_cmd_general_parms(wl); ret = wl1271_cmd_general_parms(wl);
if (ret < 0 && ret != -EIO) if (ret < 0)
return ret; return ret;
ret = wl1271_cmd_radio_parms(wl); ret = wl1271_cmd_radio_parms(wl);
if (ret < 0 && ret != -EIO) if (ret < 0)
return ret; return ret;
/* Template settings */ /* Template settings */
......
...@@ -354,15 +354,12 @@ static int wl1271_plt_init(struct wl1271 *wl) ...@@ -354,15 +354,12 @@ static int wl1271_plt_init(struct wl1271 *wl)
{ {
int ret; int ret;
/* FIXME: the following parameter setting functions return error
* codes - the reason is so far unknown. The -EIO is therefore
* ignored for the time being. */
ret = wl1271_cmd_general_parms(wl); ret = wl1271_cmd_general_parms(wl);
if (ret < 0 && ret != -EIO) if (ret < 0)
return ret; return ret;
ret = wl1271_cmd_radio_parms(wl); ret = wl1271_cmd_radio_parms(wl);
if (ret < 0 && ret != -EIO) if (ret < 0)
return ret; return ret;
ret = wl1271_acx_init_mem_config(wl); ret = wl1271_acx_init_mem_config(wl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment