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

[PATCH] I2C: remove unneeded MOD_INC and MOD_DEC calls.

parent 6ab5c9ad
...@@ -779,10 +779,6 @@ int i2c_iic_add_bus(struct i2c_adapter *adap) ...@@ -779,10 +779,6 @@ int i2c_iic_add_bus(struct i2c_adapter *adap)
adap->retries = 3; /* be replaced by defines */ adap->retries = 3; /* be replaced by defines */
adap->flags = 0; adap->flags = 0;
#ifdef MODULE
MOD_INC_USE_COUNT;
#endif
i2c_add_adapter(adap); i2c_add_adapter(adap);
iic_init(iic_adap); iic_init(iic_adap);
...@@ -815,9 +811,6 @@ int i2c_iic_del_bus(struct i2c_adapter *adap) ...@@ -815,9 +811,6 @@ int i2c_iic_del_bus(struct i2c_adapter *adap)
return res; return res;
DEB2(printk("i2c-algo-ite: adapter unregistered: %s\n",adap->name)); DEB2(printk("i2c-algo-ite: adapter unregistered: %s\n",adap->name));
#ifdef MODULE
MOD_DEC_USE_COUNT;
#endif
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