Signed-off-by: Patrick Ziegler <[email protected]>
---
backport/compat/compat-2.6.25.c | 4 ++++
backport/compat/compat-2.6.28.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/backport/compat/compat-2.6.25.c b/backport/compat/compat-2.6.25.c
index b3597ea..169a555 100644
--- a/backport/compat/compat-2.6.25.c
+++ b/backport/compat/compat-2.6.25.c
@@ -212,9 +212,13 @@ EXPORT_SYMBOL_GPL(sg_alloc_table);
*/
int pci_enable_device_mem(struct pci_dev *dev)
{
+#ifdef CONFIG_PCI
int bars = pci_select_bars(dev, IORESOURCE_MEM);
return pci_enable_device_bars(dev, bars);
+#else
+ return 0;
+#endif
}
EXPORT_SYMBOL_GPL(pci_enable_device_mem);
diff --git a/backport/compat/compat-2.6.28.c b/backport/compat/compat-2.6.28.c
index e47626b..2ff6b1e 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 */
--
1.8.1.2
--
Dipl.-Inf. (FH) Patrick Ziegler
University Of Applied Sciences
Kaiserslautern
Amerikastrasse 1
D-66482 Zweibruecken
Germany
Phone: +49 631 3724 5526
Mail: [email protected]
PGP KeyID 0xB4796B8C
http://www.fh-kl.de
http://www.fh-kl.de/fachbereiche/imst/iuk-knowhow.html
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html