]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
Staging: epl: remove kernel version checks
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 Mar 2009 20:07:51 +0000 (13:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:22 +0000 (14:54 -0700)
They are no longer needed now that we are in the kernel.

Cc: Daniel Krueger <daniel.krueger@systec-electronic.com>
Cc: Ronald Sieber <Ronald.Sieber@systec-electronic.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/epl/Edrv8139.c
drivers/staging/epl/EplApiLinuxKernel.c
drivers/staging/epl/EplTarget.h
drivers/staging/epl/VirtualEthernetLinux.c
drivers/staging/epl/proc_fs.c

index c0709a5836f74db8371f2667e220082827df26b3..44e3f7b144bcb415ecf590a978525f5f1febca17 100644 (file)
@@ -81,7 +81,6 @@
 #include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/major.h>
-#include <linux/version.h>
 #include <asm/io.h>
 #include <asm/uaccess.h>
 #include <asm/atomic.h>
@@ -751,12 +750,7 @@ void EdrvInterruptHandler(void)
 }
 #endif
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
 static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p)
-#else
-static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
-                    struct pt_regs *ptRegs_p)
-#endif
 {
 //    EdrvInterruptHandler();
        tEdrvRxBuffer RxBuffer;
index a994b16d8492b3927f0ff1836505d3e2f64d94a1..5a2d066e60ecac20bdd6f5ddbf1dc5086e5a57fd 100644 (file)
@@ -72,9 +72,6 @@
 
 // kernel modul and driver
 
-//#include <linux/version.h>
-//#include <linux/config.h>
-
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/cdev.h>
 //#include "kernel/EplPdokCal.h"
 #include "proc_fs.h"
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
-    // remove ("make invisible") obsolete symbols for kernel versions 2.6
-    // and higher
-#define MOD_INC_USE_COUNT
-#define MOD_DEC_USE_COUNT
-#define EXPORT_NO_SYMBOLS
-#else
-#error "This driver needs a 2.6.x kernel or higher"
-#endif
 
 /***************************************************************************/
 /*                                                                         */
@@ -226,8 +214,6 @@ static int EplLinIoctl(struct inode *pDeviceFile_p, struct file *pInstance_p,
 //  Kernel Module specific Data Structures
 //---------------------------------------------------------------------------
 
-EXPORT_NO_SYMBOLS;
-
 module_init(EplLinInit);
 module_exit(EplLinExit);
 
@@ -416,8 +402,6 @@ static int EplLinOpen(struct inode *pDeviceFile_p,  // information about the devi
 
        TRACE0("EPL: + EplLinOpen...\n");
 
-       MOD_INC_USE_COUNT;
-
        if (uiEplState_g != EPL_STATE_NOTOPEN) {        // stack already initialized
                iRet = -EALREADY;
        } else {
@@ -490,8 +474,6 @@ static int EplLinRelease(struct inode *pDeviceFile_p,       // information about the d
        uiEplState_g = EPL_STATE_NOTOPEN;
        iRet = 0;
 
-       MOD_DEC_USE_COUNT;
-
        TRACE1("EPL: - EplLinRelease (iRet=%d)\n", iRet);
        return (iRet);
 
index beacd89c3d68ebd61c06452258fced1aeb7b64a2..e76d21ff9d996845b531c87a6633f3f2d8f10767 100644 (file)
@@ -88,7 +88,6 @@
 #include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/major.h>
-#include <linux/version.h>
 
     //29.11.2004 f.j. sonst ist memcpy und memset unbekannt
 //    #include <string.h>
index 445b9e620c273af625fc8539a54e76b6bfa41b56..21206c4d22ffaea6e1fc08d24694e480f1feb1ae 100644 (file)
@@ -74,7 +74,6 @@
 
 ****************************************************************************/
 
-#include <linux/version.h>
 #include <linux/module.h>
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
index e82ab0c0b569cf52b312be686a177e322ed42fea..739d3899353adf8fefffc80018e675b36ec46564 100644 (file)
@@ -83,7 +83,6 @@
 #include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/major.h>
-#include <linux/version.h>
 #include <asm/io.h>
 #include <asm/uaccess.h>
 #include <asm/atomic.h>