summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-10-04 23:08:49 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-10-04 23:08:49 +0000
commite5733592f8e50ee04120a147dc3306dd9a44243c (patch)
tree8ba0e90819056b0b1fd0c42bfb0e8025739a1781 /zaptel.h
parent7f098d0f207c327e94117599f796411a33d52e94 (diff)
use pci_register_driver() on recent kernels (issue #5375, compatibility fix only, no functional difference)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@791 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.h')
-rwxr-xr-xzaptel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/zaptel.h b/zaptel.h
index ace69e5..59b4aa5 100755
--- a/zaptel.h
+++ b/zaptel.h
@@ -48,6 +48,12 @@
#define LINUX26
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
+#define zap_pci_module pci_register_driver
+#else
+#define zap_pci_module pci_module_init
+#endif
+
#include "ecdis.h"
#include "fasthdlc.h"
#endif