Skip to content

Commit

Permalink
ath6kl: Pass ath6kl structure to ath6kl_init() instead of net_device
Browse files Browse the repository at this point in the history
ar is again taken from private area of net_device in ath6kl_init(), pass
ar directly.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Vasanthakumar Thiagarajan authored and Kalle Valo committed Nov 11, 2011
1 parent 116b3a2 commit 521dffc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/wireless/ath/ath6kl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1461,9 +1461,8 @@ static int ath6kl_init_hw_params(struct ath6kl *ar)
return 0;
}

static int ath6kl_init(struct net_device *dev)
static int ath6kl_init(struct ath6kl *ar)
{
struct ath6kl *ar = ath6kl_priv(dev);
int status = 0;
s32 timeleft;

Expand Down Expand Up @@ -1632,7 +1631,7 @@ int ath6kl_core_init(struct ath6kl *ar)
if (ret)
goto err_htc_cleanup;

ret = ath6kl_init(ar->net_dev);
ret = ath6kl_init(ar);
if (ret)
goto err_htc_cleanup;

Expand Down

0 comments on commit 521dffc

Please sign in to comment.