diff options
author | Oleksij Rempel <linux@rempel-privat.de> | 2014-11-06 02:53:33 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-11-11 16:31:15 -0500 |
commit | 94cd95c217a5ed4c45e2a8c97043c3efcd66dac9 (patch) | |
tree | 3066d973e8fd4eaf5a0fad2939304214a2035bbc | |
parent | 525d09456b9fc2f769647c744c75629d9926fb9e (diff) |
ath9k_htc: add ath_ps_ops bindings
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_init.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c index 4014c4be6e79..f91b8e6b14bc 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c | |||
@@ -53,6 +53,21 @@ static const struct ieee80211_tpt_blink ath9k_htc_tpt_blink[] = { | |||
53 | }; | 53 | }; |
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | void ath9k_htc_op_ps_wakeup(struct ath_common *common) | ||
57 | { | ||
58 | ath9k_htc_ps_wakeup((struct ath9k_htc_priv *) common->priv); | ||
59 | } | ||
60 | |||
61 | void ath9k_htc_op_ps_restore(struct ath_common *common) | ||
62 | { | ||
63 | ath9k_htc_ps_restore((struct ath9k_htc_priv *) common->priv); | ||
64 | } | ||
65 | |||
66 | struct ath_ps_ops ath9k_htc_ps_ops = { | ||
67 | .wakeup = ath9k_htc_op_ps_wakeup, | ||
68 | .restore = ath9k_htc_op_ps_restore, | ||
69 | }; | ||
70 | |||
56 | static int ath9k_htc_wait_for_target(struct ath9k_htc_priv *priv) | 71 | static int ath9k_htc_wait_for_target(struct ath9k_htc_priv *priv) |
57 | { | 72 | { |
58 | int time_left; | 73 | int time_left; |
@@ -478,6 +493,7 @@ static int ath9k_init_priv(struct ath9k_htc_priv *priv, | |||
478 | 493 | ||
479 | common = ath9k_hw_common(ah); | 494 | common = ath9k_hw_common(ah); |
480 | common->ops = &ah->reg_ops; | 495 | common->ops = &ah->reg_ops; |
496 | common->ps_ops = &ath9k_htc_ps_ops; | ||
481 | common->bus_ops = &ath9k_usb_bus_ops; | 497 | common->bus_ops = &ath9k_usb_bus_ops; |
482 | common->ah = ah; | 498 | common->ah = ah; |
483 | common->hw = priv->hw; | 499 | common->hw = priv->hw; |