summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/hif.c
diff options
context:
space:
mode:
authorKalle Valo2012-01-17 19:09:19 +0100
committerKalle Valo2012-01-18 12:59:49 +0100
commit5afa5aa79680ee107fef1195c80f5f67c54b6691 (patch)
tree5f3617a5412d2af3941b1deaa2e46cc36ef82cef /drivers/net/wireless/ath/ath6kl/hif.c
parentath6kl: create core.c (diff)
downloadkernel-qcow2-linux-5afa5aa79680ee107fef1195c80f5f67c54b6691.tar.gz
kernel-qcow2-linux-5afa5aa79680ee107fef1195c80f5f67c54b6691.tar.xz
kernel-qcow2-linux-5afa5aa79680ee107fef1195c80f5f67c54b6691.zip
ath6kl: get rid of AR_DBG_LVL_CHECK()
We don't need it as debug calls already have a log level and compiler should be smart enough to optimise away the code when ath6kl debug code is not enabled. Also it makes it easier to abstract core code to ath6kl_core.ko. In ath6kl_dump_registers() I had to change the debug level from ANY to IRQ as I removed the AR_DBG_LVL_CHECK() check before calling the function. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/hif.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/hif.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/hif.c b/drivers/net/wireless/ath/ath6kl/hif.c
index e57da35e59fa..711886860b5d 100644
--- a/drivers/net/wireless/ath/ath6kl/hif.c
+++ b/drivers/net/wireless/ath/ath6kl/hif.c
@@ -429,9 +429,8 @@ static int proc_pending_irqs(struct ath6kl_device *dev, bool *done)
if (status)
goto out;
- if (AR_DBG_LVL_CHECK(ATH6KL_DBG_IRQ))
- ath6kl_dump_registers(dev, &dev->irq_proc_reg,
- &dev->irq_en_reg);
+ ath6kl_dump_registers(dev, &dev->irq_proc_reg,
+ &dev->irq_en_reg);
/* Update only those registers that are enabled */
host_int_status = dev->irq_proc_reg.host_int_status &