Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314103
b: refs/heads/master
c: 4afc37a
h: refs/heads/master
i:
  314101: b787ff3
  314099: 35897b1
  314095: 3748213
v: v3
  • Loading branch information
Luciano Coelho committed Jun 5, 2012
1 parent 98e6335 commit f6187a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73d8a42464d3fd8de907d032a7dafa1d23d88490
refs/heads/master: 4afc37a0c1c58415ac3ad1c07afd8ebf81cb90c5
20 changes: 10 additions & 10 deletions trunk/drivers/net/wireless/ti/wlcore/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,10 +962,6 @@ static int wl12xx_chip_wakeup(struct wl1271 *wl, bool plt)
if (wl1271_set_block_size(wl))
wl->quirks |= WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN;

ret = wl->ops->identify_chip(wl);
if (ret < 0)
goto out;

/* TODO: make sure the lower driver has set things up correctly */

ret = wl1271_setup(wl);
Expand Down Expand Up @@ -4872,12 +4868,6 @@ static int wl1271_register_hw(struct wl1271 *wl)
if (wl->mac80211_registered)
return 0;

ret = wl12xx_get_hw_info(wl);
if (ret < 0) {
wl1271_error("couldn't get hw info");
goto out;
}

ret = wl1271_fetch_nvs(wl);
if (ret == 0) {
/* NOTE: The wl->nvs->nvs element must be first, in
Expand Down Expand Up @@ -5282,6 +5272,16 @@ int __devinit wlcore_probe(struct wl1271 *wl, struct platform_device *pdev)
}
disable_irq(wl->irq);

ret = wl12xx_get_hw_info(wl);
if (ret < 0) {
wl1271_error("couldn't get hw info");
goto out;
}

ret = wl->ops->identify_chip(wl);
if (ret < 0)
goto out;

ret = wl1271_init_ieee80211(wl);
if (ret)
goto out_irq;
Expand Down

0 comments on commit f6187a6

Please sign in to comment.