(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:
Kyosti Malkki committed 1999-03-28 14:49:54 +00:00
1 parent cb505753d1
commit 669686ff1c
5 files changed
+3 -7

No files matched your search

-1
View File
@@ -3,7 +3,6 @@ Many, many things. Most notably:
* Sensors program needs to print a + before lm75 temperatures
* Timer chips - block read problems?
* LM78 detection: bit 5 reg 0x49 may be one?!?
* bit-lp increases module count stupidly
* Segfault if too high /dev/i2c-* file accessed
* Library: reload does not work (Bison/Flex problem?)
* Create wait-queues for bus locking instead of pure semaphores, to make
+3
View File
@@ -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
-2
View File
@@ -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;
}
-2
View File
@@ -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;
}
-2
View File
@@ -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;
}