Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220963
b: refs/heads/master
c: 3d435ad
h: refs/heads/master
i:
  220961: 761d469
  220959: e673872
v: v3
  • Loading branch information
Jones Desougi authored and John W. Linville committed Oct 27, 2010
1 parent a0fcf9c commit 137dd02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 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: dc9f48ce7c7d345be31208def51572a8250a4a03
refs/heads/master: 3d435ad7218ff58c846d7e52d87c2daf115f50cd
17 changes: 8 additions & 9 deletions trunk/drivers/net/wireless/ath/ath5k/attach.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ int ath5k_hw_attach(struct ath5k_softc *sc)
/* Fill the ath5k_hw struct with the needed functions */
ret = ath5k_hw_init_desc_functions(ah);
if (ret)
goto err_free;
goto err;

/* Bring device out of sleep and reset its units */
ret = ath5k_hw_nic_wakeup(ah, 0, true);
if (ret)
goto err_free;
goto err;

/* Get MAC, PHY and RADIO revisions */
ah->ah_mac_srev = srev;
Expand Down Expand Up @@ -234,7 +234,7 @@ int ath5k_hw_attach(struct ath5k_softc *sc)
} else {
ATH5K_ERR(sc, "Couldn't identify radio revision.\n");
ret = -ENODEV;
goto err_free;
goto err;
}
}

Expand All @@ -244,15 +244,15 @@ int ath5k_hw_attach(struct ath5k_softc *sc)
(srev < AR5K_SREV_AR2425)) {
ATH5K_ERR(sc, "Device not yet supported.\n");
ret = -ENODEV;
goto err_free;
goto err;
}

/*
* POST
*/
ret = ath5k_hw_post(ah);
if (ret)
goto err_free;
goto err;

/* Enable pci core retry fix on Hainan (5213A) and later chips */
if (srev >= AR5K_SREV_AR5213A)
Expand All @@ -265,7 +265,7 @@ int ath5k_hw_attach(struct ath5k_softc *sc)
ret = ath5k_eeprom_init(ah);
if (ret) {
ATH5K_ERR(sc, "unable to init EEPROM\n");
goto err_free;
goto err;
}

ee = &ah->ah_capabilities.cap_eeprom;
Expand Down Expand Up @@ -307,7 +307,7 @@ int ath5k_hw_attach(struct ath5k_softc *sc)
if (ret) {
ATH5K_ERR(sc, "unable to get device capabilities: 0x%04x\n",
sc->pdev->device);
goto err_free;
goto err;
}

/* Crypto settings */
Expand Down Expand Up @@ -341,8 +341,7 @@ int ath5k_hw_attach(struct ath5k_softc *sc)
ath5k_hw_set_ledstate(ah, AR5K_LED_INIT);

return 0;
err_free:
kfree(ah);
err:
return ret;
}

Expand Down

0 comments on commit 137dd02

Please sign in to comment.