summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ziegler <patrick.ziegler@fh-kl.de>2013-08-15 14:40:00 +0200
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-08-15 19:56:27 -0700
commit27a8741e3312871854711f4699feed58c0b5d699 (patch)
tree041fa8c30b37abeb7e341aa028bb49cec1f8738e
parent38dbdde48f135c6b8fd1524eacf79041c7b5899a (diff)
backports: fix build errors for old kernel versions without PCI support
Signed-off-by: Patrick Ziegler <patrick.ziegler@fh-kl.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rw-r--r--backport/compat/compat-2.6.25.c2
-rw-r--r--backport/compat/compat-2.6.28.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/backport/compat/compat-2.6.25.c b/backport/compat/compat-2.6.25.c
index b3597ea1..37407a49 100644
--- a/backport/compat/compat-2.6.25.c
+++ b/backport/compat/compat-2.6.25.c
@@ -210,6 +210,7 @@ EXPORT_SYMBOL_GPL(sg_alloc_table);
* to it. We implement a sloppy work around for backporting
* this.
*/
+#ifdef CONFIG_PCI
int pci_enable_device_mem(struct pci_dev *dev)
{
int bars = pci_select_bars(dev, IORESOURCE_MEM);
@@ -217,6 +218,7 @@ int pci_enable_device_mem(struct pci_dev *dev)
return pci_enable_device_bars(dev, bars);
}
EXPORT_SYMBOL_GPL(pci_enable_device_mem);
+#endif
/**
* The following things are out of ./lib/vsprintf.c
diff --git a/backport/compat/compat-2.6.28.c b/backport/compat/compat-2.6.28.c
index e47626b2..2ff6b1ee 100644
--- a/backport/compat/compat-2.6.28.c
+++ b/backport/compat/compat-2.6.28.c
@@ -12,6 +12,7 @@
#include <linux/usb.h>
#include <linux/tty.h>
#include <linux/skbuff.h>
+#include <linux/pci.h>
#include <asm/poll.h>
/* 2.6.28 compat code goes here */