mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-11 16:40:16 +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
@@ -87,13 +87,11 @@ static int bit_via_getsda(void *data)
|
||||
|
||||
static int bit_via_reg(struct i2c_client *client)
|
||||
{
|
||||
MOD_INC_USE_COUNT;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int bit_via_unreg(struct i2c_client *client)
|
||||
{
|
||||
MOD_DEC_USE_COUNT;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user