Commit d4f60e6f authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] I2C: remove some MOD_INC and MOD_DEC usages that are not needed anymore.

parent 530ca2f1
...@@ -187,7 +187,6 @@ static int bt832_attach(struct i2c_adapter *adap, int addr, ...@@ -187,7 +187,6 @@ static int bt832_attach(struct i2c_adapter *adap, int addr,
t->client.data = t; t->client.data = t;
i2c_attach_client(&t->client); i2c_attach_client(&t->client);
MOD_INC_USE_COUNT;
if(! bt832_init(&t->client)) { if(! bt832_init(&t->client)) {
bt832_detach(&t->client); bt832_detach(&t->client);
return -1; return -1;
...@@ -210,7 +209,6 @@ static int bt832_detach(struct i2c_client *client) ...@@ -210,7 +209,6 @@ static int bt832_detach(struct i2c_client *client)
printk("bt832: detach.\n"); printk("bt832: detach.\n");
i2c_detach_client(client); i2c_detach_client(client);
kfree(t); kfree(t);
MOD_DEC_USE_COUNT;
return 0; return 0;
} }
......
...@@ -214,7 +214,6 @@ static int saa5249_attach(struct i2c_adapter *adap, int addr, int kind) ...@@ -214,7 +214,6 @@ static int saa5249_attach(struct i2c_adapter *adap, int addr, int kind)
} }
t->client = client; t->client = client;
i2c_attach_client(client); i2c_attach_client(client);
MOD_INC_USE_COUNT;
return 0; return 0;
} }
...@@ -237,7 +236,6 @@ static int saa5249_detach(struct i2c_client *client) ...@@ -237,7 +236,6 @@ static int saa5249_detach(struct i2c_client *client)
kfree(vd->priv); kfree(vd->priv);
kfree(vd); kfree(vd);
kfree(client); kfree(client);
MOD_DEC_USE_COUNT;
return 0; return 0;
} }
......
...@@ -134,7 +134,6 @@ tuner_attach(struct i2c_adapter *adap, int addr, int kind) ...@@ -134,7 +134,6 @@ tuner_attach(struct i2c_adapter *adap, int addr, int kind)
printk("tuner: SAB3036 found, status %02x\n", tuner_getstatus(client)); printk("tuner: SAB3036 found, status %02x\n", tuner_getstatus(client));
i2c_attach_client(client); i2c_attach_client(client);
MOD_INC_USE_COUNT;
if (i2c_master_send(client, buffer, 2) != 2) if (i2c_master_send(client, buffer, 2) != 2)
printk("tuner: i2c i/o error 1\n"); printk("tuner: i2c i/o error 1\n");
...@@ -148,7 +147,6 @@ tuner_attach(struct i2c_adapter *adap, int addr, int kind) ...@@ -148,7 +147,6 @@ tuner_attach(struct i2c_adapter *adap, int addr, int kind)
static int static int
tuner_detach(struct i2c_client *c) tuner_detach(struct i2c_client *c)
{ {
MOD_DEC_USE_COUNT;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment