diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-11-30 20:54:39 +0100 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-12-02 11:49:16 +0100 |
commit | 67b37bef315c0554b0a6a48f39c69753dcb043de (patch) | |
tree | 8883a1c4ccf9a105caeaa5464466a92ed34bb676 /backport/backport-include/linux/pci.h | |
parent | 74571a07a608daf241433172ee398c0b71188af8 (diff) |
backports: check for define in module_driver and not kernel version
In some places backports checked for the kernel version on weather to
add a own define for module_driver or not. This patch makes it check if
there is already one or not.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'backport/backport-include/linux/pci.h')
-rw-r--r-- | backport/backport-include/linux/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backport/backport-include/linux/pci.h b/backport/backport-include/linux/pci.h index e309586d..208278d4 100644 --- a/backport/backport-include/linux/pci.h +++ b/backport/backport-include/linux/pci.h @@ -70,7 +70,7 @@ #define compat_pci_resume(fn) #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0) +#ifndef module_pci_driver /** * module_pci_driver() - Helper macro for registering a PCI driver * @__pci_driver: pci_driver struct |