staging: brcm80211: align common dirver code
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>
This commit is contained in:
parent
2ea0f6fa65
commit
db3f94c5a4
2 changed files with 5 additions and 10 deletions
|
@ -131,10 +131,8 @@ void ai_scan(si_t *sih, void *regs, uint devid)
|
||||||
eromptr = regs;
|
eromptr = regs;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef BCMSDIO
|
|
||||||
case SPI_BUS:
|
case SPI_BUS:
|
||||||
case SDIO_BUS:
|
case SDIO_BUS:
|
||||||
#endif /* BCMSDIO */
|
|
||||||
eromptr = (u32 *)(unsigned long)erombase;
|
eromptr = (u32 *)(unsigned long)erombase;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -355,10 +353,8 @@ void *ai_setcoreidx(si_t *sih, uint coreidx)
|
||||||
pci_write_config_dword(sii->osh->pdev, PCI_BAR0_WIN2, wrap);
|
pci_write_config_dword(sii->osh->pdev, PCI_BAR0_WIN2, wrap);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef BCMSDIO
|
|
||||||
case SPI_BUS:
|
case SPI_BUS:
|
||||||
case SDIO_BUS:
|
case SDIO_BUS:
|
||||||
#endif /* BCMSDIO */
|
|
||||||
sii->curmap = regs = (void *)(unsigned long)addr;
|
sii->curmap = regs = (void *)(unsigned long)addr;
|
||||||
sii->curwrap = (void *)(unsigned long)wrap;
|
sii->curwrap = (void *)(unsigned long)wrap;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -32,6 +32,10 @@
|
||||||
|
|
||||||
#ifdef BCMDBG
|
#ifdef BCMDBG
|
||||||
#define PMU_MSG(args) printf args
|
#define PMU_MSG(args) printf args
|
||||||
|
|
||||||
|
/* debug-only definitions */
|
||||||
|
/* #define BCMDBG_FORCEHT */
|
||||||
|
/* #define CHIPC_UART_ALWAYS_ON */
|
||||||
#else
|
#else
|
||||||
#define PMU_MSG(args)
|
#define PMU_MSG(args)
|
||||||
#endif /* BCMDBG */
|
#endif /* BCMDBG */
|
||||||
|
@ -2504,12 +2508,7 @@ bool si_pmu_is_otp_powered(si_t *sih, struct osl_info *osh)
|
||||||
return st;
|
return st;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void si_pmu_sprom_enable(si_t *sih, struct osl_info *osh, bool enable)
|
||||||
#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
|
|
||||||
{
|
{
|
||||||
chipcregs_t *cc;
|
chipcregs_t *cc;
|
||||||
uint origidx;
|
uint origidx;
|
||||||
|
|
Loading…
Add table
Reference in a new issue