From: Claudio Mignanti Date: Sun, 20 Jun 2010 12:41:22 +0000 (+0000) Subject: [kernel] pci_set_mwi depends upon CONFIG_HAVE_PCI_SET_MWI X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=8bd1801a142f51a99959036a1f0e03b8d3bb9254;hp=19c51b0de78443bafd9e11c2bb4290ed3fee38ef [kernel] pci_set_mwi depends upon CONFIG_HAVE_PCI_SET_MWI SVN-Revision: 21849 --- diff --git a/target/linux/generic-2.6/files/crypto/ocf/hifn/hifn7751.c b/target/linux/generic-2.6/files/crypto/ocf/hifn/hifn7751.c index 6136e84ef7..e7fd5bb5a3 100644 --- a/target/linux/generic-2.6/files/crypto/ocf/hifn/hifn7751.c +++ b/target/linux/generic-2.6/files/crypto/ocf/hifn/hifn7751.c @@ -434,8 +434,10 @@ hifn_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!");