summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-01-06 01:39:15 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-06 01:39:15 -0200
commitd5c04e3ad97347a3b62795daac379028f2ade352 (patch)
tree648e5cacf6283d5929788e051384b9ffea469e9b /v4l/compat.h
parent24f89f1e167838425e9ac9b9a1a4143a969ff0ac (diff)
downloadmediapointer-dvb-s2-d5c04e3ad97347a3b62795daac379028f2ade352.tar.gz
mediapointer-dvb-s2-d5c04e3ad97347a3b62795daac379028f2ade352.tar.bz2
fix compile with Fedora 10 kernel
From: Nicola Soranzo <nsoranzo@tiscali.it> Fix compile error about ioremap_nocache with kernel 2.6.27.9 shipped by Fedora 10. Signed-off-by: Nicola Soranzo <nsoranzo@tiscali.it> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 3b04c91f6..7fc249001 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -270,10 +270,6 @@ static inline int dummy_algo_control(struct i2c_adapter *adapter,
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28)
#define snd_BUG_ON(cond) WARN((cond), "BUG? (%s)\n", __stringify(cond))
-
-#define pci_ioremap_bar(pci, a) \
- ioremap_nocache(pci_resource_start(pci, a), \
- pci_resource_len(pci, a))
#endif
#ifndef PCI_DEVICE_ID_MARVELL_88ALP01_CCIC
@@ -410,5 +406,11 @@ static inline int usb_endpoint_type(const struct usb_endpoint_descriptor *epd)
#define netdev_priv(dev) ((dev)->priv)
#endif
+#ifdef NEED_PCI_IOREMAP_BAR
+#define pci_ioremap_bar(struct pci_dev *pdev, int bar) \
+ ioremap_nocache(pci_resource_start(pdev, bar), \
+ pci_resource_len(pdev, bar))
+#endif
+
#endif