mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-27 20:48:22 +00:00
(Kyösti)
* Removed unnecessary MOD_INC/DEC_USE_COUNT in host adapter drivers (i2c-via bit-lp bit-velle) You can now rmmod adapters even when they have registered clients. Without this, you would have to detach the clients first. Only way of doing this is to rmmod the client drivers, but the same drivers might be used to access clients behind other hosts. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@347 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
cb505753d1
commit
669686ff1c
5 files changed
+3
-7
No files matched your search
@@ -15,6 +15,9 @@ Here come the changes:
|
||||
|
||||
* Algo-bit now scans the bus before registering the adapter.
|
||||
|
||||
* Bit-lp and bit-velle don't increase module usage counts
|
||||
when clients register.
|
||||
|
||||
! Renamed #define HW_B_MB to HW_B_VIA in i2c.h
|
||||
|
||||
! Added '#include <linux/page.h>' to i2c.h, to make it compile with 2.2
|
||||
|
||||
@@ -118,13 +118,11 @@ void bit_lp_exit(void)
|
||||
|
||||
int bit_lp_reg(struct i2c_client *client)
|
||||
{
|
||||
MOD_INC_USE_COUNT;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int bit_lp_unreg(struct i2c_client *client)
|
||||
{
|
||||
MOD_DEC_USE_COUNT;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -130,13 +130,11 @@ void bit_velle_exit(void)
|
||||
|
||||
int bit_velle_reg(struct i2c_client *client)
|
||||
{
|
||||
MOD_INC_USE_COUNT;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int bit_velle_unreg(struct i2c_client *client)
|
||||
{
|
||||
MOD_DEC_USE_COUNT;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user