Skip to content

Commit

Permalink
V4L/DVB: cx23885: Enable Message Signaled Interrupts(MSI)
Browse files Browse the repository at this point in the history
Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Kusanagi Kouichi authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent b48592e commit e38030f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions drivers/media/video/cx23885/cx23885-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1953,8 +1953,12 @@ static int __devinit cx23885_initdev(struct pci_dev *pci_dev,
goto fail_irq;
}

err = request_irq(pci_dev->irq, cx23885_irq,
IRQF_SHARED | IRQF_DISABLED, dev->name, dev);
if (!pci_enable_msi(pci_dev))
err = request_irq(pci_dev->irq, cx23885_irq,
IRQF_DISABLED, dev->name, dev);
else
err = request_irq(pci_dev->irq, cx23885_irq,
IRQF_SHARED | IRQF_DISABLED, dev->name, dev);
if (err < 0) {
printk(KERN_ERR "%s: can't get IRQ %d\n",
dev->name, pci_dev->irq);
Expand Down Expand Up @@ -2000,6 +2004,7 @@ static void __devexit cx23885_finidev(struct pci_dev *pci_dev)

/* unregister stuff */
free_irq(pci_dev->irq, dev);
pci_disable_msi(pci_dev);

cx23885_dev_unregister(dev);
v4l2_device_unregister(v4l2_dev);
Expand Down

0 comments on commit e38030f

Please sign in to comment.