aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-06 09:41:08 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:06:05 -0500
commit2c94404c30008a10ccd3c7e31645626eb90a8a06 (patch)
treebf34728439a7d7e77c20a4acf74657ee5bd402b1 /drivers
parent9088566176cb7f7361e862557eb20adfdd1bfc1f (diff)
libertas: Move SET_BOOT2_VER command to if_usb where it belongs
This is meaningless for non-USB devices and unimplemented in their firmware. It's somewhat dubious for USB devices too, but that's a different story. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/libertas/if_usb.c5
-rw-r--r--drivers/net/wireless/libertas/main.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index 418dcab8b1cc..f8589283d7bc 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -222,6 +222,11 @@ static int if_usb_probe(struct usb_interface *intf,
222 if (lbs_start_card(priv)) 222 if (lbs_start_card(priv))
223 goto err_start_card; 223 goto err_start_card;
224 224
225 /* Set the boot2 version in firmware, ignoring errors. */
226 (void)lbs_prepare_and_send_command(priv, CMD_SET_BOOT2_VER,
227 0, CMD_OPTION_WAITFORRSP, 0, NULL);
228
229
225 usb_get_dev(udev); 230 usb_get_dev(udev);
226 usb_set_intfdata(intf, cardp); 231 usb_set_intfdata(intf, cardp);
227 232
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index ed02c02c96da..a5b573ce5454 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -999,10 +999,6 @@ static int lbs_setup_firmware(struct lbs_private *priv)
999 priv->mesh_autostart_enabled = 0; 999 priv->mesh_autostart_enabled = 0;
1000 } 1000 }
1001 1001
1002 /* Set the boot2 version in firmware */
1003 ret = lbs_prepare_and_send_command(priv, CMD_SET_BOOT2_VER,
1004 0, CMD_OPTION_WAITFORRSP, 0, NULL);
1005
1006 ret = 0; 1002 ret = 0;
1007done: 1003done:
1008 lbs_deb_leave_args(LBS_DEB_FW, "ret %d", ret); 1004 lbs_deb_leave_args(LBS_DEB_FW, "ret %d", ret);