diff options
Diffstat (limited to 'drivers/net/hamradio/bpqether.c')
-rw-r--r-- | drivers/net/hamradio/bpqether.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/hamradio/bpqether.c b/drivers/net/hamradio/bpqether.c index fb186b8c3d4d..b6500b2aacf2 100644 --- a/drivers/net/hamradio/bpqether.c +++ b/drivers/net/hamradio/bpqether.c | |||
@@ -124,14 +124,16 @@ static LIST_HEAD(bpq_devices); | |||
124 | */ | 124 | */ |
125 | static struct lock_class_key bpq_netdev_xmit_lock_key; | 125 | static struct lock_class_key bpq_netdev_xmit_lock_key; |
126 | 126 | ||
127 | static void bpq_set_lockdep_class_one(struct netdev_queue *txq) | 127 | static void bpq_set_lockdep_class_one(struct net_device *dev, |
128 | struct netdev_queue *txq, | ||
129 | void *_unused) | ||
128 | { | 130 | { |
129 | lockdep_set_class(&txq->_xmit_lock, &bpq_netdev_xmit_lock_key); | 131 | lockdep_set_class(&txq->_xmit_lock, &bpq_netdev_xmit_lock_key); |
130 | } | 132 | } |
131 | 133 | ||
132 | static void bpq_set_lockdep_class(struct net_device *dev) | 134 | static void bpq_set_lockdep_class(struct net_device *dev) |
133 | { | 135 | { |
134 | bpq_set_lockdep_class_one(&dev->tx_queue); | 136 | netdev_for_each_tx_queue(dev, bpq_set_lockdep_class_one, NULL); |
135 | } | 137 | } |
136 | 138 | ||
137 | /* ------------------------------------------------------------------------ */ | 139 | /* ------------------------------------------------------------------------ */ |