summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda7432.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/tda7432.c')
-rw-r--r--linux/drivers/media/video/tda7432.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/linux/drivers/media/video/tda7432.c b/linux/drivers/media/video/tda7432.c
index 5c58967ce..f873e3256 100644
--- a/linux/drivers/media/video/tda7432.c
+++ b/linux/drivers/media/video/tda7432.c
@@ -47,10 +47,6 @@
#include <linux/videodev.h>
#include <linux/i2c.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
-#include "i2c-compat.h"
-#else
-#endif
#include <media/v4l2-common.h>
#include <media/i2c-addr.h>
#include "compat.h"
@@ -314,12 +310,7 @@ static void do_tda7432_init(struct i2c_client *client)
* i2c interface functions *
* *********************** */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
static int tda7432_attach(struct i2c_adapter *adap, int addr, int kind)
-#else
-static int tda7432_attach(struct i2c_adapter *adap, int addr,
- unsigned short flags, int kind)
-#endif
{
struct tda7432 *t;
struct i2c_client *client;
@@ -335,9 +326,6 @@ static int tda7432_attach(struct i2c_adapter *adap, int addr,
i2c_set_clientdata(client, t);
do_tda7432_init(client);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
- MOD_INC_USE_COUNT;
-#endif
i2c_attach_client(client);
v4l_info(client, "chip found @ 0x%x (%s)\n", addr << 1, adap->name);
@@ -364,9 +352,6 @@ static int tda7432_detach(struct i2c_client *client)
i2c_detach_client(client);
kfree(t);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
- MOD_DEC_USE_COUNT;
-#endif
return 0;
}
@@ -531,10 +516,8 @@ static int tda7432_command(struct i2c_client *client,
}
static struct i2c_driver driver = {
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))&&(LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15))
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15)
.owner = THIS_MODULE,
-#endif
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15)
.name = "tda7432",
.flags = I2C_DF_NOTIFY,
#else