summaryrefslogtreecommitdiff
path: root/v4l_experimental/dpl3518.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l_experimental/dpl3518.c')
-rw-r--r--v4l_experimental/dpl3518.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/v4l_experimental/dpl3518.c b/v4l_experimental/dpl3518.c
index 43533767e..76a90be6b 100644
--- a/v4l_experimental/dpl3518.c
+++ b/v4l_experimental/dpl3518.c
@@ -46,12 +46,7 @@
#include <linux/fs.h>
#include <asm/uaccess.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
-#include "id.h"
-#include "i2c-compat.h"
-#else
#include <media/id.h>
-#endif
#include "dpl3518.h"
@@ -235,12 +230,7 @@ static void dpl3518_spatial(struct i2c_client *client, int spatial)
/* ----------------------------------------------------------------------- */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
static int dpl3518_attach(struct i2c_adapter *adap, int addr, int kind)
-#else
-static int dpl3518_attach(struct i2c_adapter *adap, int addr,
- unsigned short flags, int kind)
-#endif
{
struct dpl3518 *dpl;
struct i2c_client *client;
@@ -365,9 +355,7 @@ static int dpl3518_dev_release(struct inode *inode, struct file *file)
/* ---------------------------------------------------------------------- */
static struct i2c_driver driver = {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,54)
.owner = THIS_MODULE,
-#endif
.name = "i2c dpl3518 driver",
.id = I2C_DRIVERID_DPL3518,
.flags = I2C_DF_NOTIFY,