Skip to content

Commit

Permalink
Staging: epl: remove kernel version checks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Apr 3, 2009
1 parent 01f5e03 commit b349129
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 27 deletions.
6 changes: 0 additions & 6 deletions drivers/staging/epl/Edrv8139.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down
18 changes: 0 additions & 18 deletions drivers/staging/epl/EplApiLinuxKernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -102,15 +99,6 @@
//#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

/***************************************************************************/
/* */
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion drivers/staging/epl/EplTarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/epl/VirtualEthernetLinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
****************************************************************************/

#include <linux/version.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/epl/proc_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit b349129

Please sign in to comment.