Show
Ignore:
Timestamp:
11/25/04 22:51:18 (9 years ago)
Author:
khali
Message:

Remove owner from i2c_adapter, restore inc_use and dec_use
instead.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/busses/i2c-i801.c

    r2558 r2772  
    528528} 
    529529 
     530static void i801_inc(struct i2c_adapter *adapter) 
     531{ 
     532#ifdef MODULE 
     533        MOD_INC_USE_COUNT; 
     534#endif 
     535} 
     536 
     537static void i801_dec(struct i2c_adapter *adapter) 
     538{ 
     539#ifdef MODULE 
     540        MOD_DEC_USE_COUNT; 
     541#endif 
     542} 
    530543 
    531544static u32 i801_func(struct i2c_adapter *adapter) 
     
    550563 
    551564static struct i2c_adapter i801_adapter = { 
    552         .owner          = THIS_MODULE, 
    553565        .id             = I2C_ALGO_SMBUS | I2C_HW_SMBUS_I801, 
    554566        .algo           = &smbus_algorithm, 
    555         .name   = "unset", 
     567        .name           = "unset", 
     568        .inc_use        = i801_inc, 
     569        .dec_use        = i801_dec, 
    556570}; 
    557571