diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2011-10-25 10:03:56 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-11-11 05:50:58 -0500 |
commit | 521dffcc8ae90ad08e9d9f12d9f9acc9db562194 (patch) | |
tree | 6d45eb5b6305a0001eacf4017ad29a40922a09a7 | |
parent | 116b3a2e0fb79fbc2367f69167a7a84a4c864a2d (diff) |
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 <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/init.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c index 51ac62651995..2534e88b252c 100644 --- a/drivers/net/wireless/ath/ath6kl/init.c +++ b/drivers/net/wireless/ath/ath6kl/init.c | |||
@@ -1461,9 +1461,8 @@ static int ath6kl_init_hw_params(struct ath6kl *ar) | |||
1461 | return 0; | 1461 | return 0; |
1462 | } | 1462 | } |
1463 | 1463 | ||
1464 | static int ath6kl_init(struct net_device *dev) | 1464 | static int ath6kl_init(struct ath6kl *ar) |
1465 | { | 1465 | { |
1466 | struct ath6kl *ar = ath6kl_priv(dev); | ||
1467 | int status = 0; | 1466 | int status = 0; |
1468 | s32 timeleft; | 1467 | s32 timeleft; |
1469 | 1468 | ||
@@ -1632,7 +1631,7 @@ int ath6kl_core_init(struct ath6kl *ar) | |||
1632 | if (ret) | 1631 | if (ret) |
1633 | goto err_htc_cleanup; | 1632 | goto err_htc_cleanup; |
1634 | 1633 | ||
1635 | ret = ath6kl_init(ar->net_dev); | 1634 | ret = ath6kl_init(ar); |
1636 | if (ret) | 1635 | if (ret) |
1637 | goto err_htc_cleanup; | 1636 | goto err_htc_cleanup; |
1638 | 1637 | ||