From 6ddcfdcf919463469496132731671ebb5f9908e9 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 14 Oct 2010 12:26:08 -0700 Subject: [PATCH] Staging: brcm80211: fix up compiler warnings I created I messed up on some of the uintptr conversions, this fixes them up properly. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman --- drivers/staging/brcm80211/util/aiutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/brcm80211/util/aiutils.c b/drivers/staging/brcm80211/util/aiutils.c index b3e2f854bfbf..512f4127ab9a 100644 --- a/drivers/staging/brcm80211/util/aiutils.c +++ b/drivers/staging/brcm80211/util/aiutils.c @@ -134,7 +134,7 @@ void ai_scan(si_t *sih, void *regs, uint devid) case SPI_BUS: case SDIO_BUS: #endif /* BCMSDIO */ - eromptr = (u32 *)erombase; + eromptr = (u32 *)(unsigned long)erombase; break; default: @@ -358,8 +358,8 @@ void *ai_setcoreidx(si_t *sih, uint coreidx) case SPI_BUS: case SDIO_BUS: #endif /* BCMSDIO */ - sii->curmap = regs = (void *)addr; - sii->curwrap = (void *)wrap; + sii->curmap = regs = (void *)(unsigned long)addr; + sii->curwrap = (void *)(unsigned long)wrap; break; default: -- 2.20.1