diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2018-09-28 14:38:47 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-09-28 14:45:26 +0300 |
commit | a8fda4b220a704b8cea4ccef9cbf694a7b88599e (patch) | |
tree | 2487f1abc319149c3bfa03fe83ca9e67e34ba55c /mmio.c | |
parent | 0527feb6f7912c80d0c2472361b3367dde038388 (diff) |
mt76: move mt76x02_set_irq_mask in mt76x02_mmio.c
Move mt76x02_set_irq_mask, mt76x02_irq_enable and mt76x02_irq_disable
in mt76x02-lib module in order to be reused by mt76x0 driver.
Moreover move irq_lock and irqmask in mt76_mmio data structure
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Diffstat (limited to 'mmio.c')
-rw-r--r-- | mmio.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -60,6 +60,7 @@ void mt76_mmio_init(struct mt76_dev *dev, void __iomem *regs) skb_queue_head_init(&dev->mmio.mcu.res_q); init_waitqueue_head(&dev->mmio.mcu.wait); + spin_lock_init(&dev->mmio.irq_lock); mutex_init(&dev->mmio.mcu.mutex); } EXPORT_SYMBOL_GPL(mt76_mmio_init); |