From 84318349cd1584a035e84b05c44bfee022d2f837 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 10 Oct 2005 14:27:18 +0000 Subject: - Some compilation fixes for 2.4 kernel. Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/tvp5150.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/video/tvp5150.c') diff --git a/linux/drivers/media/video/tvp5150.c b/linux/drivers/media/video/tvp5150.c index 235e1f700..8ae7ad2b9 100644 --- a/linux/drivers/media/video/tvp5150.c +++ b/linux/drivers/media/video/tvp5150.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "compat.h" #include #include @@ -763,8 +764,13 @@ static struct i2c_client client_template = { .driver = &driver, }; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) static int tvp5150_detect_client(struct i2c_adapter *adapter, int address, int kind) +#else +static int tvp5150_detect_client(struct i2c_adapter *adapter, + int address, unsigned short flags, int kind) +#endif { struct i2c_client *client; struct tvp5150 *core; @@ -815,7 +821,9 @@ static int tvp5150_detect_client(struct i2c_adapter *adapter, if (debug > 1) dump_reg(client); - +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) + MOD_INC_USE_COUNT; +#endif return 0; } -- cgit v1.2.3