Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315331
b: refs/heads/master
c: ed1dd81
h: refs/heads/master
i:
  315329: eb7fc99
  315327: 2e96044
v: v3
  • Loading branch information
Hauke Mehrtens authored and John W. Linville committed Jul 10, 2012
1 parent 70fb89e commit 43bc128
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 72d4d66205a7e033fa56755ff3f81ab17d952df9
refs/heads/master: ed1dd81464f53314b5d93924adb84de9cd5838a5
16 changes: 8 additions & 8 deletions trunk/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ void ai_detach(struct si_pub *sih)
struct si_pub *si_local = NULL;
memcpy(&si_local, &sih, sizeof(struct si_pub **));

sii = (struct si_info *)sih;
sii = container_of(sih, struct si_info, pub);

if (sii == NULL)
return;
Expand All @@ -597,7 +597,7 @@ struct bcma_device *ai_findcore(struct si_pub *sih, u16 coreid, u16 coreunit)
struct si_info *sii;
uint found;

sii = (struct si_info *)sih;
sii = container_of(sih, struct si_info, pub);

found = 0;

Expand All @@ -620,7 +620,7 @@ uint ai_cc_reg(struct si_pub *sih, uint regoff, u32 mask, u32 val)
u32 w;
struct si_info *sii;

sii = (struct si_info *)sih;
sii = container_of(sih, struct si_info, pub);
cc = sii->icbus->drv_cc.core;

/* mask and set */
Expand Down Expand Up @@ -713,7 +713,7 @@ u16 ai_clkctl_fast_pwrup_delay(struct si_pub *sih)
uint slowminfreq;
u16 fpdelay;

sii = (struct si_info *)sih;
sii = container_of(sih, struct si_info, pub);
if (ai_get_cccaps(sih) & CC_CAP_PMU) {
fpdelay = si_pmu_fast_pwrup_delay(sih);
return fpdelay;
Expand Down Expand Up @@ -745,7 +745,7 @@ bool ai_clkctl_cc(struct si_pub *sih, enum bcma_clkmode mode)
struct si_info *sii;
struct bcma_device *cc;

sii = (struct si_info *)sih;
sii = container_of(sih, struct si_info, pub);

cc = ai_findcore(&sii->pub, BCMA_CORE_CHIPCOMMON, 0);
bcma_core_set_clockmode(cc, mode);
Expand All @@ -756,7 +756,7 @@ void ai_pci_up(struct si_pub *sih)
{
struct si_info *sii;

sii = (struct si_info *)sih;
sii = container_of(sih, struct si_info, pub);

if (sii->icbus->hosttype == BCMA_HOSTTYPE_PCI)
bcma_core_pci_extend_L1timer(&sii->icbus->drv_pci, true);
Expand All @@ -767,7 +767,7 @@ void ai_pci_down(struct si_pub *sih)
{
struct si_info *sii;

sii = (struct si_info *)sih;
sii = container_of(sih, struct si_info, pub);

if (sii->icbus->hosttype == BCMA_HOSTTYPE_PCI)
bcma_core_pci_extend_L1timer(&sii->icbus->drv_pci, false);
Expand All @@ -790,7 +790,7 @@ bool ai_deviceremoved(struct si_pub *sih)
u32 w;
struct si_info *sii;

sii = (struct si_info *)sih;
sii = container_of(sih, struct si_info, pub);

if (sii->icbus->hosttype != BCMA_HOSTTYPE_PCI)
return false;
Expand Down

0 comments on commit 43bc128

Please sign in to comment.