From e5733592f8e50ee04120a147dc3306dd9a44243c Mon Sep 17 00:00:00 2001 From: kpfleming Date: Tue, 4 Oct 2005 23:08:49 +0000 Subject: 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 --- zaptel.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'zaptel.h') 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 -- cgit v1.2.3