Skip to content

Commit

Permalink
staging: brcm80211: align common dirver code
Browse files Browse the repository at this point in the history
Remove differences in util sources for the two supported drivers.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Arend van Spriel authored and Greg Kroah-Hartman committed Feb 4, 2011
1 parent 2ea0f6f commit db3f94c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/brcm80211/util/aiutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,8 @@ void ai_scan(si_t *sih, void *regs, uint devid)
eromptr = regs;
break;

#ifdef BCMSDIO
case SPI_BUS:
case SDIO_BUS:
#endif /* BCMSDIO */
eromptr = (u32 *)(unsigned long)erombase;
break;

Expand Down Expand Up @@ -355,10 +353,8 @@ void *ai_setcoreidx(si_t *sih, uint coreidx)
pci_write_config_dword(sii->osh->pdev, PCI_BAR0_WIN2, wrap);
break;

#ifdef BCMSDIO
case SPI_BUS:
case SDIO_BUS:
#endif /* BCMSDIO */
sii->curmap = regs = (void *)(unsigned long)addr;
sii->curwrap = (void *)(unsigned long)wrap;
break;
Expand Down
11 changes: 5 additions & 6 deletions drivers/staging/brcm80211/util/hndpmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@

#ifdef BCMDBG
#define PMU_MSG(args) printf args

/* debug-only definitions */
/* #define BCMDBG_FORCEHT */
/* #define CHIPC_UART_ALWAYS_ON */
#else
#define PMU_MSG(args)
#endif /* BCMDBG */
Expand Down Expand Up @@ -2504,12 +2508,7 @@ bool si_pmu_is_otp_powered(si_t *sih, struct osl_info *osh)
return st;
}

void
#if defined(BCMDBG)
si_pmu_sprom_enable(si_t *sih, struct osl_info *osh, bool enable)
#else
si_pmu_sprom_enable(si_t *sih, struct osl_info *osh, bool enable)
#endif
void si_pmu_sprom_enable(si_t *sih, struct osl_info *osh, bool enable)
{
chipcregs_t *cc;
uint origidx;
Expand Down

0 comments on commit db3f94c

Please sign in to comment.