just a dummy function even for later 2.2 kernels. Make pci_request_regions
compatibility stuff pretty useless.
extern inline unsigned long pci_resource_end(struct pci_dev *dev, unsigned int bar)
{
- return pci_resource_start(dev, bar) + pci_resource_len(dev, bar) - 1;
+ return pci_resource_start(dev, bar);
}
extern inline int pci_request_regions(struct pci_dev *dev, char *name)
{ return; }
#endif // 2.2.14
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)
+extern inline unsigned long pci_resource_len (struct pci_dev *dev, int n_base)
+{ return 0; }
+#endif // 2.2.18
+
#endif
#endif /* _COMPAT_PCI_H */