mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
swapped if/else
This commit is contained in:
parent
8931ae4d9e
commit
bfd1f1979d
@ -119,9 +119,9 @@ static int __devinit ddb_irq_msi(struct ddb *dev, int nr)
|
|||||||
if (msi && pci_msi_enabled()) {
|
if (msi && pci_msi_enabled()) {
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0))
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
|
||||||
stat = pci_enable_msi_range(dev->pdev, 1, nr);
|
|
||||||
#else
|
|
||||||
stat = pci_alloc_irq_vectors(dev->pdev, 1, nr, PCI_IRQ_MSI);
|
stat = pci_alloc_irq_vectors(dev->pdev, 1, nr, PCI_IRQ_MSI);
|
||||||
|
#else
|
||||||
|
stat = pci_enable_msi_range(dev->pdev, 1, nr);
|
||||||
#endif
|
#endif
|
||||||
if (stat >= 1) {
|
if (stat >= 1) {
|
||||||
dev->msi = stat;
|
dev->msi = stat;
|
||||||
|
Loading…
Reference in New Issue
Block a user