aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/intel_mid_i2s/intel_mid_i2s.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/intel_mid_i2s/intel_mid_i2s.c')
-rw-r--r--sound/pci/intel_mid_i2s/intel_mid_i2s.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/intel_mid_i2s/intel_mid_i2s.c b/sound/pci/intel_mid_i2s/intel_mid_i2s.c
index 95967cb7b73..fec37649db4 100644
--- a/sound/pci/intel_mid_i2s/intel_mid_i2s.c
+++ b/sound/pci/intel_mid_i2s/intel_mid_i2s.c
@@ -18,7 +18,6 @@
*/
#include <linux/pci.h>
#include <linux/dma-mapping.h>
-#include <linux/interrupt.h>
#include <linux/pm_runtime.h>
#include <linux/pci_regs.h>
#include <linux/wait.h>
@@ -1096,8 +1095,6 @@ static irqreturn_t i2s_int(int irq, void *dev_id)
u32 irq_status = 0;
u32 mask_status = 0;
struct device *ddbg = &(drv_data->pdev->dev);
- reg = drv_data->ioaddr;
- irq_status = read_SSSR(reg);
if (ddbg->power.status != DPM_ON)
@@ -1107,6 +1104,9 @@ static irqreturn_t i2s_int(int irq, void *dev_id)
return IRQ_NONE;
#endif
+ reg = drv_data->ioaddr;
+ irq_status = read_SSSR(reg);
+
if (!(irq_status & (drv_data->mask_sr))) {
return IRQ_NONE;
} else {