Skip to content

Commit

Permalink
staging: brcm80211: remove global var gInstance from brcmfmac
Browse files Browse the repository at this point in the history
Use sdio function pointer stored in struct brcmf_sdio_dev instead
of those in gInstance.

Reviewed-by: Arend van Spriel <arend@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 Aug 23, 2011
1 parent b73b2f9 commit 47b4c64
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 129 deletions.
5 changes: 3 additions & 2 deletions drivers/staging/brcm80211/brcmfmac/bcmsdh.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/pci_ids.h>
#include <linux/sched.h>
#include <linux/completion.h>
#include <linux/mmc/card.h>

#include <defs.h>
#include <brcm_hw_ids.h>
Expand Down Expand Up @@ -55,12 +56,12 @@ brcmf_sdcard_iovar_op(struct brcmf_sdio_dev *sdiodev, const char *name,

int brcmf_sdcard_intr_reg(struct brcmf_sdio_dev *sdiodev)
{
return brcmf_sdioh_interrupt_register();
return brcmf_sdioh_interrupt_register(sdiodev);
}

int brcmf_sdcard_intr_dereg(struct brcmf_sdio_dev *sdiodev)
{
return brcmf_sdioh_interrupt_deregister();
return brcmf_sdioh_interrupt_deregister(sdiodev);
}

u8 brcmf_sdcard_cfg_read(struct brcmf_sdio_dev *sdiodev, uint fnc_num, u32 addr,
Expand Down
Loading

0 comments on commit 47b4c64

Please sign in to comment.