Show
Ignore:
Timestamp:
11/25/04 22:51:18 (10 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-ipmi.c

    r2483 r2772  
    3535static int bmcclient_i2c_send_message(struct i2c_adapter *, char *, int); 
    3636 
     37static void i2c_ipmi_inc_use(struct i2c_adapter *adapter) 
     38{ 
     39#ifdef MODULE 
     40        MOD_INC_USE_COUNT; 
     41#endif 
     42} 
     43 
     44static void i2c_ipmi_dec_use(struct i2c_adapter *adapter) 
     45{ 
     46#ifdef MODULE 
     47        MOD_DEC_USE_COUNT; 
     48#endif 
     49} 
     50 
    3751/* I2C Data */ 
    3852static struct i2c_algorithm i2c_ipmi_algorithm = { 
     
    4458 
    4559static struct i2c_adapter i2c_ipmi_adapter = { 
    46         .owner          = THIS_MODULE, 
    4760        .name           = "IPMI adapter", 
    4861        .id             = I2C_ALGO_IPMI | I2C_HW_IPMI, 
    4962        .algo           = &i2c_ipmi_algorithm, 
     63        .inc_use        = &i2c_ipmi_inc_use, 
     64        .dec_use        = &i2c_ipmi_dec_use, 
    5065}; 
    5166