Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291157
b: refs/heads/master
c: e64a4b7
h: refs/heads/master
i:
  291155: 9475c5b
v: v3
  • Loading branch information
Arend van Spriel authored and John W. Linville committed Mar 5, 2012
1 parent b1cb2f0 commit d1a440b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 549040abbc03e87bdee2964fea5e4c827471d4df
refs/heads/master: e64a4b708fd5b719b54f7f969895b66bcba71486
18 changes: 14 additions & 4 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,19 +1181,29 @@ int brcmf_write_to_file(struct brcmf_pub *drvr, const u8 *buf, int size)
}
#endif /* DEBUG */

static int __init brcmfmac_init(void)
static void brcmf_driver_init(struct work_struct *work)
{
#ifdef CONFIG_BRCMFMAC_SDIO
brcmf_sdio_init();
#endif
#ifdef CONFIG_BRCMFMAC_USB
brcmf_usb_init();
#endif
}
static DECLARE_WORK(brcmf_driver_work, brcmf_driver_init);

static int __init brcmfmac_module_init(void)
{
if (!schedule_work(&brcmf_driver_work))
return -EBUSY;

return 0;
}

static void __exit brcmfmac_exit(void)
static void __exit brcmfmac_module_exit(void)
{
cancel_work_sync(&brcmf_driver_work);

#ifdef CONFIG_BRCMFMAC_SDIO
brcmf_sdio_exit();
#endif
Expand All @@ -1202,5 +1212,5 @@ static void __exit brcmfmac_exit(void)
#endif
}

module_init(brcmfmac_init);
module_exit(brcmfmac_exit);
module_init(brcmfmac_module_init);
module_exit(brcmfmac_module_exit);

0 comments on commit d1a440b

Please sign in to comment.