mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-27 20:48: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
@@ -99,6 +99,20 @@ static int bit_hydra_getsda(void *data)
|
||||
return (pdregr() & HYDRA_SDAT) != 0;
|
||||
}
|
||||
|
||||
static void bit_hydra_inc(struct i2c_adapter *adap)
|
||||
{
|
||||
#ifdef MODULE
|
||||
MOD_INC_USE_COUNT;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void bit_hydra_dec(struct i2c_adapter *adap)
|
||||
{
|
||||
#ifdef MODULE
|
||||
MOD_DEC_USE_COUNT;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
static struct i2c_algo_bit_data bit_hydra_data = {
|
||||
@@ -112,10 +126,11 @@ static struct i2c_algo_bit_data bit_hydra_data = {
|
||||
};
|
||||
|
||||
static struct i2c_adapter bit_hydra_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "Hydra i2c",
|
||||
.id = I2C_HW_B_HYDRA,
|
||||
.algo_data = &bit_hydra_data,
|
||||
.algo_data = &bit_hydra_data,
|
||||
.inc_use = bit_hydra_inc,
|
||||
.dec_use = bit_hydra_dec,
|
||||
};
|
||||
|
||||
static struct pci_device_id hydra_ids[] __devinitdata = {
|
||||
|
||||
Reference in new issue
Block a user