summaryrefslogtreecommitdiff
path: root/backport/compat/compat-3.7.c
diff options
context:
space:
mode:
Diffstat (limited to 'backport/compat/compat-3.7.c')
-rw-r--r--backport/compat/compat-3.7.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backport/compat/compat-3.7.c b/backport/compat/compat-3.7.c
index 284e8dcb..c8810fc6 100644
--- a/backport/compat/compat-3.7.c
+++ b/backport/compat/compat-3.7.c
@@ -22,6 +22,7 @@ bool mod_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork,
}
EXPORT_SYMBOL_GPL(mod_delayed_work);
+#ifdef CONFIG_PCI
/*
* Kernels >= 3.7 get their PCI-E Capabilities Register cached
* via the pci_dev->pcie_flags_reg so for older kernels we have
@@ -251,3 +252,4 @@ int pcie_capability_clear_and_set_dword(struct pci_dev *dev, int pos,
return ret;
}
EXPORT_SYMBOL_GPL(pcie_capability_clear_and_set_dword);
+#endif