Remove owner from i2c_adapter, restore inc_use and dec_use

instead.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2772 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2004-11-25 21:51:18 +00:00
1 parent f7d00ae81d
commit a223ec0fd5
20 files changed
+321 -31

No files matched your search

+17 -2
View File
@@ -171,6 +171,19 @@ void config_i810(struct pci_dev *dev)
}
}
static void i810_inc(struct i2c_adapter *adapter)
{
#ifdef MODULE
MOD_INC_USE_COUNT;
#endif
}
static void i810_dec(struct i2c_adapter *adapter)
{
#ifdef MODULE
MOD_DEC_USE_COUNT;
#endif
}
static struct i2c_algo_bit_data i810_i2c_bit_data = {
.setsda = bit_i810i2c_setsda,
@@ -183,10 +196,11 @@ static struct i2c_algo_bit_data i810_i2c_bit_data = {
};
static struct i2c_adapter i810_i2c_adapter = {
.owner = THIS_MODULE,
.name = "I810/I815 I2C Adapter",
.id = I2C_HW_B_I810,
.algo_data = &i810_i2c_bit_data,
.inc_use = i810_inc,
.dec_use = i810_dec,
};
static struct i2c_algo_bit_data i810_ddc_bit_data = {
@@ -200,10 +214,11 @@ static struct i2c_algo_bit_data i810_ddc_bit_data = {
};
static struct i2c_adapter i810_ddc_adapter = {
.owner = THIS_MODULE,
.name = "I810/I815 DDC Adapter",
.id = I2C_HW_B_I810,
.algo_data = &i810_ddc_bit_data,
.inc_use = i810_inc,
.dec_use = i810_dec,
};