diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-10-28 13:21:21 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-28 18:19:07 -0400 |
commit | 59cb300f2b2ce1fc46696deb9a7bd066cd53a65a (patch) | |
tree | c5bb25ddba1f8b419f3dab5b17bc43d051980f5b /net/mac802154/tx.c | |
parent | b6eea9ca354aeb80d358ff52d046bb8a26bd2b17 (diff) |
mac802154: use driver-ops function wrappers
This patch replaces all directly called driver ops by previous
introduced driver-ops function wrappers.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/tx.c')
-rw-r--r-- | net/mac802154/tx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c index e85767355c48..77973a84e9a2 100644 --- a/net/mac802154/tx.c +++ b/net/mac802154/tx.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <net/cfg802154.h> | 28 | #include <net/cfg802154.h> |
29 | 29 | ||
30 | #include "ieee802154_i.h" | 30 | #include "ieee802154_i.h" |
31 | #include "driver-ops.h" | ||
31 | 32 | ||
32 | /* IEEE 802.15.4 transceivers can sleep during the xmit session, so process | 33 | /* IEEE 802.15.4 transceivers can sleep during the xmit session, so process |
33 | * packets through the workqueue. | 34 | * packets through the workqueue. |
@@ -55,7 +56,7 @@ static void ieee802154_xmit_worker(struct work_struct *work) | |||
55 | if (!netif_running(dev)) | 56 | if (!netif_running(dev)) |
56 | goto err_tx; | 57 | goto err_tx; |
57 | 58 | ||
58 | res = local->ops->xmit_sync(&local->hw, skb); | 59 | res = drv_xmit_sync(local, skb); |
59 | if (res) | 60 | if (res) |
60 | goto err_tx; | 61 | goto err_tx; |
61 | 62 | ||
@@ -96,7 +97,7 @@ ieee802154_tx(struct ieee802154_local *local, struct sk_buff *skb) | |||
96 | 97 | ||
97 | /* async is priority, otherwise sync is fallback */ | 98 | /* async is priority, otherwise sync is fallback */ |
98 | if (local->ops->xmit_async) { | 99 | if (local->ops->xmit_async) { |
99 | ret = local->ops->xmit_async(&local->hw, skb); | 100 | ret = drv_xmit_async(local, skb); |
100 | if (ret) { | 101 | if (ret) { |
101 | ieee802154_wake_queue(&local->hw); | 102 | ieee802154_wake_queue(&local->hw); |
102 | goto err_tx; | 103 | goto err_tx; |