Get rid of MOD_INC/DEC since ref count comes from owner field on I2C
for these drivers.
Not sure who is maintaining these, maybe no one because they haven't been
purged of MOD stuff yet.
diff -Nru a/drivers/media/video/saa5249.c b/drivers/media/video/saa5249.c
--- a/drivers/media/video/saa5249.c Tue Sep 9 16:04:52 2003
+++ b/drivers/media/video/saa5249.c Tue Sep 9 16:04:52 2003
@@ -214,7 +214,6 @@
}
t->client = client;
i2c_attach_client(client);
- MOD_INC_USE_COUNT;
return 0;
}
@@ -237,7 +236,6 @@
kfree(vd->priv);
kfree(vd);
kfree(client);
- MOD_DEC_USE_COUNT;
return 0;
}
diff -Nru a/drivers/media/video/tuner-3036.c b/drivers/media/video/tuner-3036.c
--- a/drivers/media/video/tuner-3036.c Tue Sep 9 16:04:52 2003
+++ b/drivers/media/video/tuner-3036.c Tue Sep 9 16:04:52 2003
@@ -135,7 +135,6 @@
printk("tuner: SAB3036 found, status %02x\n", tuner_getstatus(client));
i2c_attach_client(client);
- MOD_INC_USE_COUNT;
if (i2c_master_send(client, buffer, 2) != 2)
printk("tuner: i2c i/o error 1\n");
@@ -149,7 +148,6 @@
static int
tuner_detach(struct i2c_client *c)
{
- MOD_DEC_USE_COUNT;
return 0;
}