[PATCH] em28xx-i2c: remove MOD_{INC,DEC}_USE_COUNT From: Eric Sesterhenn / snakebyte Signed-of-by: Eric Sesterhenn Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/media/video/em28xx/em28xx-i2c.c =================================================================== --- linux-kj.orig/drivers/media/video/em28xx/em28xx-i2c.c 2006-01-18 02:21:20.000000000 +0300 +++ linux-kj/drivers/media/video/em28xx/em28xx-i2c.c 2006-01-18 16:46:29.000000000 +0300 @@ -399,18 +399,6 @@ static u32 functionality(struct i2c_adap return I2C_FUNC_SMBUS_EMUL; } -#ifndef I2C_PEC -static void inc_use(struct i2c_adapter *adap) -{ - MOD_INC_USE_COUNT; -} - -static void dec_use(struct i2c_adapter *adap) -{ - MOD_DEC_USE_COUNT; -} -#endif - static int em28xx_set_tuner(int check_eeprom, struct i2c_client *client) { struct em28xx *dev = client->adapter->algo_data; @@ -481,12 +469,7 @@ static struct i2c_algorithm em28xx_algo }; static struct i2c_adapter em28xx_adap_template = { -#ifdef I2C_PEC .owner = THIS_MODULE, -#else - .inc_use = inc_use, - .dec_use = dec_use, -#endif .class = I2C_CLASS_TV_ANALOG, .name = "em28xx", .id = I2C_HW_B_EM28XX,