aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-08-03 15:24:47 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-04 16:44:30 -0400
commit1e40bcfa91429edb665af9ffefb2658350913d35 (patch)
tree060b92a64521e5d90c15044dafb5a342d3e1760d /drivers/net/wireless/ath/ath9k/main.c
parentf637cfd6bbacbaeab329f9dfc56e9855cc15849d (diff)
ath9k: distinguish between device initialization and ath_softc init
We re-label the device driver initialization routines from the ath_softc, the "Software Carrier" fillers. This should make it clearer what each of these do. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 751d803e1bc..91bffc91bbb 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1292,7 +1292,13 @@ static int ath9k_reg_notifier(struct wiphy *wiphy,
1292 return ath_reg_notifier_apply(wiphy, request, reg); 1292 return ath_reg_notifier_apply(wiphy, request, reg);
1293} 1293}
1294 1294
1295static int ath_init(u16 devid, struct ath_softc *sc) 1295/*
1296 * Initialize and fill ath_softc, ath_sofct is the
1297 * "Software Carrier" struct. Historically it has existed
1298 * to allow the separation between hardware specific
1299 * variables (now in ath_hw) and driver specific variables.
1300 */
1301static int ath_init_softc(u16 devid, struct ath_softc *sc)
1296{ 1302{
1297 struct ath_hw *ah = NULL; 1303 struct ath_hw *ah = NULL;
1298 int r = 0, i; 1304 int r = 0, i;
@@ -1558,7 +1564,8 @@ void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
1558 &sc->sbands[IEEE80211_BAND_5GHZ]; 1564 &sc->sbands[IEEE80211_BAND_5GHZ];
1559} 1565}
1560 1566
1561int ath_attach(u16 devid, struct ath_softc *sc) 1567/* Device driver core initialization */
1568int ath_init_device(u16 devid, struct ath_softc *sc)
1562{ 1569{
1563 struct ieee80211_hw *hw = sc->hw; 1570 struct ieee80211_hw *hw = sc->hw;
1564 int error = 0, i; 1571 int error = 0, i;
@@ -1566,7 +1573,7 @@ int ath_attach(u16 devid, struct ath_softc *sc)
1566 1573
1567 DPRINTF(sc, ATH_DBG_CONFIG, "Attach ATH hw\n"); 1574 DPRINTF(sc, ATH_DBG_CONFIG, "Attach ATH hw\n");
1568 1575
1569 error = ath_init(devid, sc); 1576 error = ath_init_softc(devid, sc);
1570 if (error != 0) 1577 if (error != 0)
1571 return error; 1578 return error;
1572 1579