From d4f60e6f81766f4b1d8baebb6604372031c6b08b Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 29 Oct 2003 00:04:38 -0800 Subject: [PATCH] [PATCH] I2C: remove some MOD_INC and MOD_DEC usages that are not needed anymore. --- drivers/media/video/bt832.c | 2 -- drivers/media/video/saa5249.c | 2 -- drivers/media/video/tuner-3036.c | 2 -- 3 files changed, 6 deletions(-) diff --git a/drivers/media/video/bt832.c b/drivers/media/video/bt832.c index 70ef066114988..3a84f9752d4c7 100644 --- a/drivers/media/video/bt832.c +++ b/drivers/media/video/bt832.c @@ -187,7 +187,6 @@ static int bt832_attach(struct i2c_adapter *adap, int addr, t->client.data = t; i2c_attach_client(&t->client); - MOD_INC_USE_COUNT; if(! bt832_init(&t->client)) { bt832_detach(&t->client); return -1; @@ -210,7 +209,6 @@ static int bt832_detach(struct i2c_client *client) printk("bt832: detach.\n"); i2c_detach_client(client); kfree(t); - MOD_DEC_USE_COUNT; return 0; } diff --git a/drivers/media/video/saa5249.c b/drivers/media/video/saa5249.c index 0f72c7ac63e52..962557a5e5c73 100644 --- a/drivers/media/video/saa5249.c +++ b/drivers/media/video/saa5249.c @@ -214,7 +214,6 @@ static int saa5249_attach(struct i2c_adapter *adap, int addr, int kind) } t->client = client; i2c_attach_client(client); - MOD_INC_USE_COUNT; return 0; } @@ -237,7 +236,6 @@ static int saa5249_detach(struct i2c_client *client) kfree(vd->priv); kfree(vd); kfree(client); - MOD_DEC_USE_COUNT; return 0; } diff --git a/drivers/media/video/tuner-3036.c b/drivers/media/video/tuner-3036.c index 445c750c846de..d98803161129b 100644 --- a/drivers/media/video/tuner-3036.c +++ b/drivers/media/video/tuner-3036.c @@ -134,7 +134,6 @@ tuner_attach(struct i2c_adapter *adap, int addr, int kind) 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"); @@ -148,7 +147,6 @@ tuner_attach(struct i2c_adapter *adap, int addr, int kind) static int tuner_detach(struct i2c_client *c) { - MOD_DEC_USE_COUNT; return 0; } -- 2.53.0