Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341440
b: refs/heads/master
c: ede615d
h: refs/heads/master
v: v3
  • Loading branch information
Vasanthakumar Thiagarajan authored and Kalle Valo committed Oct 24, 2012
1 parent 032aa89 commit 66712db
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 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: 83685091acb878980711c3b28fe42e8959583e84
refs/heads/master: ede615d2f043539e23bc4022955dbe0c3ec70ca2
28 changes: 23 additions & 5 deletions trunk/drivers/net/wireless/ath/ath6kl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@ static const char *ath6kl_init_get_hif_name(enum ath6kl_hif_type type)
return NULL;
}

int ath6kl_init_hw_start(struct ath6kl *ar)
static int __ath6kl_init_hw_start(struct ath6kl *ar)
{
long timeleft;
int ret, i;
Expand Down Expand Up @@ -1642,8 +1642,6 @@ int ath6kl_init_hw_start(struct ath6kl *ar)
goto err_htc_stop;
}

ar->state = ATH6KL_STATE_ON;

return 0;

err_htc_stop:
Expand All @@ -1656,7 +1654,18 @@ int ath6kl_init_hw_start(struct ath6kl *ar)
return ret;
}

int ath6kl_init_hw_stop(struct ath6kl *ar)
int ath6kl_init_hw_start(struct ath6kl *ar)
{
int err;

err = __ath6kl_init_hw_start(ar);
if (err)
return err;
ar->state = ATH6KL_STATE_ON;
return 0;
}

static int __ath6kl_init_hw_stop(struct ath6kl *ar)
{
int ret;

Expand All @@ -1672,8 +1681,17 @@ int ath6kl_init_hw_stop(struct ath6kl *ar)
if (ret)
ath6kl_warn("failed to power off hif: %d\n", ret);

ar->state = ATH6KL_STATE_OFF;
return 0;
}

int ath6kl_init_hw_stop(struct ath6kl *ar)
{
int err;

err = __ath6kl_init_hw_stop(ar);
if (err)
return err;
ar->state = ATH6KL_STATE_OFF;
return 0;
}

Expand Down

0 comments on commit 66712db

Please sign in to comment.