summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7134/saa6752hs.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/saa7134/saa6752hs.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/saa7134/saa6752hs.c')
-rw-r--r--linux/drivers/media/video/saa7134/saa6752hs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa7134/saa6752hs.c b/linux/drivers/media/video/saa7134/saa6752hs.c
index fa3df17a4..819721c75 100644
--- a/linux/drivers/media/video/saa7134/saa6752hs.c
+++ b/linux/drivers/media/video/saa7134/saa6752hs.c
@@ -517,7 +517,11 @@ static int saa6752hs_init(struct i2c_client* client)
return 0;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
static int saa6752hs_attach(struct i2c_adapter *adap, int addr, int kind)
+#else
+static int saa6752hs_attach(struct i2c_adapter *adap, int addr, unsigned short flags, int kind)
+#endif
{
struct saa6752hs_state *h;
@@ -536,6 +540,10 @@ static int saa6752hs_attach(struct i2c_adapter *adap, int addr, int kind)
i2c_set_clientdata(&h->client, h);
i2c_attach_client(&h->client);
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+ MOD_INC_USE_COUNT;
+#endif
return 0;
}