diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-11 21:08:47 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-15 11:32:45 +0200 |
commit | 82a36cc4b5af7fa17db71c7495dc5d9263d4fac9 (patch) | |
tree | 642720812669548e1fa4d8d172850c65ad8f7caa /backport/backport-include/linux/pci.h | |
parent | 33b2d02fb520d39a9a96ffc5e63de06df8a75c75 (diff) |
backports: dissolve compat-3.10.h
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/linux/pci.h')
-rw-r--r-- | backport/backport-include/linux/pci.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/backport/backport-include/linux/pci.h b/backport/backport-include/linux/pci.h new file mode 100644 index 00000000..d8410a42 --- /dev/null +++ b/backport/backport-include/linux/pci.h @@ -0,0 +1,17 @@ +#ifndef _BACKPORT_LINUX_PCI_H +#define _BACKPORT_LINUX_PCI_H +#include_next <linux/pci.h> +#include <linux/version.h> + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) +/* + * DRM requires this, but we can't really backport it well + */ +static inline void __iomem *pci_platform_rom(struct pci_dev *pdev, size_t *size) +{ + printk(KERN_WARNING "compat: not providing pci_platform_rom!\n"); + return NULL; +} +#endif + +#endif /* _BACKPORT_LINUX_PCI_H */ |