Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277803
b: refs/heads/master
c: a8a6c04
h: refs/heads/master
i:
  277801: ff33cb2
  277799: 8d402b0
v: v3
  • Loading branch information
Franky Lin authored and John W. Linville committed Nov 9, 2011
1 parent 224e8d3 commit d7681b1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 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: 2bc78e10d841f81ea7a2b25bc0481ea4af06437e
refs/heads/master: a8a6c04586233e12551552c292797cb56b31dade
11 changes: 1 addition & 10 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3967,23 +3967,14 @@ brcmf_sdbrcm_watchdog(unsigned long data)
}
}

static void
brcmf_sdbrcm_chip_detach(struct brcmf_bus *bus)
{
brcmf_dbg(TRACE, "Enter\n");

kfree(bus->ci);
bus->ci = NULL;
}

static void brcmf_sdbrcm_release_dongle(struct brcmf_bus *bus)
{
brcmf_dbg(TRACE, "Enter\n");

if (bus->ci) {
brcmf_sdbrcm_clkctl(bus, CLK_AVAIL, false);
brcmf_sdbrcm_clkctl(bus, CLK_NONE, false);
brcmf_sdbrcm_chip_detach(bus);
brcmf_sdio_chip_detach(&bus->ci);
if (bus->vars && bus->varsz)
kfree(bus->vars);
bus->vars = NULL;
Expand Down
9 changes: 9 additions & 0 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/sdio_chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,12 @@ int brcmf_sdio_chip_attach(struct brcmf_sdio_dev *sdiodev,
kfree(ci);
return ret;
}

void
brcmf_sdio_chip_detach(struct chip_info **ci_ptr)
{
brcmf_dbg(TRACE, "Enter\n");

kfree(*ci_ptr);
*ci_ptr = NULL;
}
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/brcm80211/brcmfmac/sdio_chip.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,6 @@ extern void brcmf_sdio_chip_coredisable(struct brcmf_sdio_dev *sdiodev,
u32 corebase);
extern int brcmf_sdio_chip_attach(struct brcmf_sdio_dev *sdiodev,
struct chip_info **ci_ptr, u32 regs);
extern void brcmf_sdio_chip_detach(struct chip_info **ci_ptr);

#endif /* _BRCMFMAC_SDIO_CHIP_H_ */

0 comments on commit d7681b1

Please sign in to comment.