mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-28 20:58:22 +00:00
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:
1 parent
f7d00ae81d
commit
a223ec0fd5
20 files changed
+321
-31
No files matched your search
@@ -34,6 +34,20 @@
|
||||
static u32 i2c_ipmi_func(struct i2c_adapter *adapter);
|
||||
static int bmcclient_i2c_send_message(struct i2c_adapter *, char *, int);
|
||||
|
||||
static void i2c_ipmi_inc_use(struct i2c_adapter *adapter)
|
||||
{
|
||||
#ifdef MODULE
|
||||
MOD_INC_USE_COUNT;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void i2c_ipmi_dec_use(struct i2c_adapter *adapter)
|
||||
{
|
||||
#ifdef MODULE
|
||||
MOD_DEC_USE_COUNT;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* I2C Data */
|
||||
static struct i2c_algorithm i2c_ipmi_algorithm = {
|
||||
.name = "IPMI algorithm",
|
||||
@@ -43,10 +57,11 @@ static struct i2c_algorithm i2c_ipmi_algorithm = {
|
||||
};
|
||||
|
||||
static struct i2c_adapter i2c_ipmi_adapter = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "IPMI adapter",
|
||||
.id = I2C_ALGO_IPMI | I2C_HW_IPMI,
|
||||
.algo = &i2c_ipmi_algorithm,
|
||||
.inc_use = &i2c_ipmi_inc_use,
|
||||
.dec_use = &i2c_ipmi_dec_use,
|
||||
};
|
||||
|
||||
/* IPMI Data */
|
||||
|
||||
Reference in new issue
Block a user