[kernel] another #ifdef around pci_set_mwi call
[openwrt.git] / target / linux / generic-2.6 / files / crypto / ocf / hifn / hifnHIPP.c
index 45ad7ba..802708d 100644 (file)
@@ -208,8 +208,10 @@ hipp_probe(struct pci_dev *dev, const struct pci_device_id *ent)
        if (pci_enable_device(dev) < 0)
                return(-ENODEV);
 
+#ifdef CONFIG_HAVE_PCI_SET_MWI
        if (pci_set_mwi(dev))
                return(-ENODEV);
+#endif
 
        if (!dev->irq) {
                printk("hifn: found device with no IRQ assigned. check BIOS settings!");
@@ -383,6 +385,7 @@ static struct pci_device_id hipp_pci_tbl[] = {
          PCI_ANY_ID, PCI_ANY_ID, 0, 0, },
        { PCI_VENDOR_HIFN, PCI_PRODUCT_HIFN_8155,
          PCI_ANY_ID, PCI_ANY_ID, 0, 0, },
+       { 0 }
 };
 MODULE_DEVICE_TABLE(pci, hipp_pci_tbl);
 
This page took 0.023201 seconds and 4 git commands to generate.