Skip to content

Commit

Permalink
Staging: brcm80211: fix up compiler warnings I created
Browse files Browse the repository at this point in the history
I messed up on some of the uintptr conversions, this fixes them up
properly.

Cc: Brett Rudley <brudley@broadcom.com>
Cc: Henry Ptasinski <henryp@broadcom.com>
Cc: Nohee Ko <noheek@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Oct 14, 2010
1 parent 7383141 commit 6ddcfdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/brcm80211/util/aiutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6ddcfdc

Please sign in to comment.