summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tveeprom.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-10-10 14:27:18 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-10-10 14:27:18 +0000
commit84318349cd1584a035e84b05c44bfee022d2f837 (patch)
tree5c0adc6f8325c91fd381c337bd87d636b3f6ca93 /linux/drivers/media/video/tveeprom.c
parentea710d504d50292203ba496ef4c663ebc46b6986 (diff)
downloadmediapointer-dvb-s2-84318349cd1584a035e84b05c44bfee022d2f837.tar.gz
mediapointer-dvb-s2-84318349cd1584a035e84b05c44bfee022d2f837.tar.bz2
- Some compilation fixes for 2.4 kernel.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers/media/video/tveeprom.c')
-rw-r--r--linux/drivers/media/video/tveeprom.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tveeprom.c b/linux/drivers/media/video/tveeprom.c
index e457e5745..581d40ce5 100644
--- a/linux/drivers/media/video/tveeprom.c
+++ b/linux/drivers/media/video/tveeprom.c
@@ -38,6 +38,7 @@
#include <linux/types.h>
#include <linux/videodev.h>
#include <linux/i2c.h>
+#include <linux/slab.h>
#include <media/tuner.h>
#include <media/tveeprom.h>
@@ -716,10 +717,18 @@ tveeprom_command(struct i2c_client *client,
return 0;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
static int
tveeprom_detect_client(struct i2c_adapter *adapter,
int address,
int kind)
+#else
+static int
+tveeprom_detect_client(struct i2c_adapter *adapter,
+ int address,
+ unsigned short flags,
+ int kind)
+#endif
{
struct i2c_client *client;
@@ -733,6 +742,10 @@ tveeprom_detect_client(struct i2c_adapter *adapter,
client->flags = I2C_CLIENT_ALLOW_USE;
snprintf(client->name, sizeof(client->name), "tveeprom");
i2c_attach_client(client);
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+ MOD_INC_USE_COUNT;
+#endif
return 0;
}