staging: brcm80211: remove unused function si_pmu_ilp_clock()
authorArend van Spriel <arend@broadcom.com>
Thu, 29 Sep 2011 22:34:21 +0000 (15:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 23:12:30 +0000 (16:12 -0700)
The function is not used in the driver and has been removed.

Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/pmu.c
drivers/staging/brcm80211/brcmsmac/pmu.h

index 61ba3735a4f7e1382f6be7895fde9522f9b0e2a4..6d4cd9fcefbe529d1b2ae8ad4c64150ab5b11a90 100644 (file)
@@ -202,28 +202,6 @@ si_pmu_spuravoid_pllupdate(struct si_pub *sih, struct chipcregs *cc,
        W_REG(&cc->pmucontrol, tmp);
 }
 
-u32 si_pmu_ilp_clock(struct si_pub *sih)
-{
-       static u32 ilpcycles_per_sec;
-
-       if (!(sih->cccaps & CC_CAP_PMU))
-               return ILP_CLOCK;
-
-       if (ilpcycles_per_sec == 0) {
-               u32 start, end, delta;
-               u32 origidx = ai_coreidx(sih);
-               struct chipcregs *cc = ai_setcoreidx(sih, SI_CC_IDX);
-               start = R_REG(&cc->pmutimer);
-               mdelay(ILP_CALC_DUR);
-               end = R_REG(&cc->pmutimer);
-               delta = end - start;
-               ilpcycles_per_sec = delta * (1000 / ILP_CALC_DUR);
-               ai_setcoreidx(sih, origidx);
-       }
-
-       return ilpcycles_per_sec;
-}
-
 u16 si_pmu_fast_pwrup_delay(struct si_pub *sih)
 {
        uint delay = PMU_MAX_TRANSITION_DLY;
index 2917e6ff8626d00dec305229b24279c163352bcc..3a08c620640e7272ebe474314a686b1cedd53925 100644 (file)
@@ -24,7 +24,6 @@ extern u16 si_pmu_fast_pwrup_delay(struct si_pub *sih);
 extern void si_pmu_sprom_enable(struct si_pub *sih, bool enable);
 extern u32 si_pmu_chipcontrol(struct si_pub *sih, uint reg, u32 mask, u32 val);
 extern u32 si_pmu_regcontrol(struct si_pub *sih, uint reg, u32 mask, u32 val);
-extern u32 si_pmu_ilp_clock(struct si_pub *sih);
 extern u32 si_pmu_alp_clock(struct si_pub *sih);
 extern void si_pmu_pllupd(struct si_pub *sih);
 extern void si_pmu_spuravoid(struct si_pub *sih, u8 spuravoid);