summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-03-09 23:04:06 +0000
committersam <sam@FreeBSD.org>2009-03-09 23:04:06 +0000
commit63651013874326541928bef7effc652e82703afc (patch)
treea7de721db30153badfa384dd6bbf138f53d7a2c3 /sys/dev/ath
parent4961c33f6ba9db1cfaf030d4fc201f7e886f4c4b (diff)
downloadFreeBSD-src-63651013874326541928bef7effc652e82703afc.zip
FreeBSD-src-63651013874326541928bef7effc652e82703afc.tar.gz
remove ar9160Detach; it does nothing
Diffstat (limited to 'sys/dev/ath')
-rw-r--r--sys/dev/ath/ath_hal/ar5416/ar9160_attach.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar9160_attach.c b/sys/dev/ath/ath_hal/ar5416/ar9160_attach.c
index e476189..96dca80 100644
--- a/sys/dev/ath/ath_hal/ar5416/ar9160_attach.c
+++ b/sys/dev/ath/ath_hal/ar5416/ar9160_attach.c
@@ -57,7 +57,6 @@ static const HAL_PERCAL_DATA ar9160_adc_init_dc_cal = {
.calPostProc = ar5416AdcDcCalibration
};
-static void ar9160Detach(struct ath_hal *);
static HAL_BOOL ar9160FillCapabilityInfo(struct ath_hal *ah);
static void
@@ -116,7 +115,6 @@ ar9160Attach(uint16_t devid, HAL_SOFTC sc,
/* XXX override with 9160 specific state */
/* override 5416 methods for our needs */
- ah->ah_detach = ar9160Detach;
AH5416(ah)->ah_cal.iqCalData.calData = &ar9160_iq_cal;
AH5416(ah)->ah_cal.adcGainCalData.calData = &ar9160_adc_gain_cal;
@@ -258,23 +256,12 @@ ar9160Attach(uint16_t devid, HAL_SOFTC sc,
return ah;
bad:
if (ahp)
- ar9160Detach((struct ath_hal *) ahp);
+ ar5416Detach((struct ath_hal *) ahp);
if (status)
*status = ecode;
return AH_NULL;
}
-void
-ar9160Detach(struct ath_hal *ah)
-{
- HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s:\n", __func__);
-
- HALASSERT(ah != AH_NULL);
- HALASSERT(ah->ah_magic == AR5416_MAGIC);
-
- ar5416Detach(ah);
-}
-
/*
* Fill all software cached or static hardware state information.
* Return failure if capabilities are to come from EEPROM and
OpenPOWER on IntegriCloud