Show
Ignore:
Timestamp:
12/07/98 23:15:49 (14 years ago)
Author:
frodo
Message:

Module use count fix

This fix will only work for kernels >= 2.1.58.

* lm75, lm78: {INC,DEC}_MOD_USE_COUNT called for {inc,dec}_mod_use hooks
* sensors: For new kernels, fill_inode is called, which in turn calls

{inc,dec}_mod_use for a certain client

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/lm78.c

    r36 r46  
    584584void lm78_inc_use (struct i2c_client *client) 
    585585{ 
     586#ifdef MODULE 
     587  MOD_INC_USE_COUNT; 
     588#endif 
    586589} 
    587590 
     
    589592void lm78_dec_use (struct i2c_client *client) 
    590593{ 
     594#ifdef MODULE 
     595  MOD_DEC_USE_COUNT; 
     596#endif 
    591597} 
    592598