diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/b2c2/flexcop-pci.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-pci.c b/drivers/media/dvb/b2c2/flexcop-pci.c index 6e166801505d..01af4d237eb1 100644 --- a/drivers/media/dvb/b2c2/flexcop-pci.c +++ b/drivers/media/dvb/b2c2/flexcop-pci.c | |||
@@ -127,10 +127,11 @@ static irqreturn_t flexcop_pci_isr(int irq, void *dev_id) | |||
127 | { | 127 | { |
128 | struct flexcop_pci *fc_pci = dev_id; | 128 | struct flexcop_pci *fc_pci = dev_id; |
129 | struct flexcop_device *fc = fc_pci->fc_dev; | 129 | struct flexcop_device *fc = fc_pci->fc_dev; |
130 | unsigned long flags; | ||
130 | flexcop_ibi_value v; | 131 | flexcop_ibi_value v; |
131 | irqreturn_t ret = IRQ_HANDLED; | 132 | irqreturn_t ret = IRQ_HANDLED; |
132 | 133 | ||
133 | spin_lock_irq(&fc_pci->irq_lock); | 134 | spin_lock_irqsave(&fc_pci->irq_lock,flags); |
134 | 135 | ||
135 | v = fc->read_ibi_reg(fc,irq_20c); | 136 | v = fc->read_ibi_reg(fc,irq_20c); |
136 | 137 | ||
@@ -194,7 +195,7 @@ static irqreturn_t flexcop_pci_isr(int irq, void *dev_id) | |||
194 | ret = IRQ_NONE; | 195 | ret = IRQ_NONE; |
195 | } | 196 | } |
196 | 197 | ||
197 | spin_unlock_irq(&fc_pci->irq_lock); | 198 | spin_unlock_irqrestore(&fc_pci->irq_lock,flags); |
198 | 199 | ||
199 | return ret; | 200 | return ret; |
200 | } | 201 | } |
@@ -293,12 +294,12 @@ static int flexcop_pci_init(struct flexcop_pci *fc_pci) | |||
293 | } | 294 | } |
294 | 295 | ||
295 | pci_set_drvdata(fc_pci->pdev, fc_pci); | 296 | pci_set_drvdata(fc_pci->pdev, fc_pci); |
296 | 297 | spin_lock_init(&fc_pci->irq_lock); | |
297 | if ((ret = request_irq(fc_pci->pdev->irq, flexcop_pci_isr, | 298 | if ((ret = request_irq(fc_pci->pdev->irq, flexcop_pci_isr, |
298 | IRQF_SHARED, DRIVER_NAME, fc_pci)) != 0) | 299 | IRQF_SHARED, DRIVER_NAME, fc_pci)) != 0) |
299 | goto err_pci_iounmap; | 300 | goto err_pci_iounmap; |
300 | 301 | ||
301 | spin_lock_init(&fc_pci->irq_lock); | 302 | |
302 | 303 | ||
303 | fc_pci->init_state |= FC_PCI_INIT; | 304 | fc_pci->init_state |= FC_PCI_INIT; |
304 | return ret; | 305 | return ret; |