Skip to content

Commit

Permalink
staging: brcm80211: remove fullmac module_param for intr/poll mode
Browse files Browse the repository at this point in the history
Use constant for interrupt/polling mode configuration.

Reviewed-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Franky Lin authored and Greg Kroah-Hartman committed Oct 5, 2011
1 parent 019f45f commit a3b0b56
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions drivers/staging/brcm80211/brcmfmac/dhd_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,14 +725,6 @@ module_param(brcmf_dpc_prio, int, 0);

#define SDIO_DRIVE_STRENGTH 6 /* in milliamps */

/* Use polling */
uint brcmf_poll;
module_param(brcmf_poll, uint, 0);

/* Use interrupts */
uint brcmf_intr = true;
module_param(brcmf_intr, uint, 0);

#define RETRYCHAN(chan) ((chan) == SDPCM_EVENT_CHANNEL)

/* Retry count for register access failures */
Expand Down Expand Up @@ -4324,8 +4316,8 @@ brcmf_sdbrcm_probe_attach(struct brcmf_bus *bus, u32 regsva)
BRCMF_SDALIGN);

/* Set the poll and/or interrupt flags */
bus->intr = (bool) brcmf_intr;
bus->poll = (bool) brcmf_poll;
bus->intr = true;
bus->poll = false;
if (bus->poll)
bus->pollrate = 1;

Expand Down

0 comments on commit a3b0b56

Please sign in to comment.