mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ath6kl: Pass ath6kl structure to ath6kl_init() instead of net_device
ar is again taken from private area of net_device in ath6kl_init(), pass ar directly. Signed-off-by: Vasanthakumar Thiagarajan <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
This commit is contained in:
parent
116b3a2e0f
commit
521dffcc8a
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue