Changeset 347

Show
Ignore:
Timestamp:
03/28/99 16:49:54 (10 years ago)
Author:
kmalkki
Message:

(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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/TODO

    r337 r347  
    44* Timer chips - block read problems? 
    55* LM78 detection: bit 5 reg 0x49 may be one?!? 
    6 * bit-lp increases module count stupidly 
    76* Segfault if too high /dev/i2c-* file accessed 
    87* Library: reload does not work (Bison/Flex problem?) 
  • lm-sensors/trunk/i2c/MODIFICATIONS

    r346 r347  
    1515 
    1616* Algo-bit now scans the bus before registering the adapter. 
     17 
     18* Bit-lp and bit-velle don't increase module usage counts 
     19  when clients register. 
    1720 
    1821! Renamed #define HW_B_MB to HW_B_VIA in i2c.h 
  • lm-sensors/trunk/i2c/bit-lp.c

    r185 r347  
    119119int bit_lp_reg(struct i2c_client *client) 
    120120{ 
    121         MOD_INC_USE_COUNT; 
    122121        return 0; 
    123122} 
     
    125124int bit_lp_unreg(struct i2c_client *client) 
    126125{ 
    127         MOD_DEC_USE_COUNT; 
    128126        return 0; 
    129127} 
  • lm-sensors/trunk/i2c/bit-velle.c

    r184 r347  
    131131int bit_velle_reg(struct i2c_client *client) 
    132132{ 
    133         MOD_INC_USE_COUNT; 
    134133        return 0; 
    135134} 
     
    137136int bit_velle_unreg(struct i2c_client *client) 
    138137{ 
    139         MOD_DEC_USE_COUNT; 
    140138        return 0; 
    141139} 
  • lm-sensors/trunk/kernel/busses/i2c-via.c

    r344 r347  
    8888static int bit_via_reg(struct i2c_client *client) 
    8989{ 
    90         MOD_INC_USE_COUNT; 
    9190        return 0; 
    9291} 
     
    9493static int bit_via_unreg(struct i2c_client *client) 
    9594{ 
    96         MOD_DEC_USE_COUNT; 
    9795        return 0; 
    9896}