IB/qib: Fix undefined symbol error when CONFIG_PCI_MSI=n
This patch fixes a compile error saying qib_init_iba6120_funcs() is undefined when CONFIG_PCI_MSI is not defined. Thanks to Randy Dunlap <randy.dunlap@oracle.com> for finding this and suggesting the fix. Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
committed by
Roland Dreier
parent
ec96e2fe95
commit
7e3a1f4ab1
@@ -1237,7 +1237,13 @@ static int __devinit qib_init_one(struct pci_dev *pdev,
|
||||
*/
|
||||
switch (ent->device) {
|
||||
case PCI_DEVICE_ID_QLOGIC_IB_6120:
|
||||
#ifdef CONFIG_PCI_MSI
|
||||
dd = qib_init_iba6120_funcs(pdev, ent);
|
||||
#else
|
||||
qib_early_err(&pdev->dev, "QLogic PCIE device 0x%x cannot "
|
||||
"work if CONFIG_PCI_MSI is not enabled\n",
|
||||
ent->device);
|
||||
#endif
|
||||
break;
|
||||
|
||||
case PCI_DEVICE_ID_QLOGIC_IB_7220:
|
||||
|
Reference in New Issue
Block a user