diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-05-22 09:31:50 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 00:59:57 -0400 |
commit | f6320bd3df5964619346bac77b36d03c5a82f6fd (patch) | |
tree | 1a293e3ad89d4d4db1b486fad8cc383a20c932dd /drivers/media/video/em28xx | |
parent | 7923dee035ec81f6e4ad696e3edddbdd34d37873 (diff) |
V4L/DVB (3968a): Remove compatibility check for I2C_PEC
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-i2c.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/media/video/em28xx/em28xx-i2c.c b/drivers/media/video/em28xx/em28xx-i2c.c index 80d8c2dde6fb..fce30d341887 100644 --- a/drivers/media/video/em28xx/em28xx-i2c.c +++ b/drivers/media/video/em28xx/em28xx-i2c.c | |||
@@ -399,17 +399,6 @@ static u32 functionality(struct i2c_adapter *adap) | |||
399 | return I2C_FUNC_SMBUS_EMUL; | 399 | return I2C_FUNC_SMBUS_EMUL; |
400 | } | 400 | } |
401 | 401 | ||
402 | #ifndef I2C_PEC | ||
403 | static void inc_use(struct i2c_adapter *adap) | ||
404 | { | ||
405 | MOD_INC_USE_COUNT; | ||
406 | } | ||
407 | |||
408 | static void dec_use(struct i2c_adapter *adap) | ||
409 | { | ||
410 | MOD_DEC_USE_COUNT; | ||
411 | } | ||
412 | #endif | ||
413 | 402 | ||
414 | static int em28xx_set_tuner(int check_eeprom, struct i2c_client *client) | 403 | static int em28xx_set_tuner(int check_eeprom, struct i2c_client *client) |
415 | { | 404 | { |
@@ -480,12 +469,7 @@ static struct i2c_algorithm em28xx_algo = { | |||
480 | }; | 469 | }; |
481 | 470 | ||
482 | static struct i2c_adapter em28xx_adap_template = { | 471 | static struct i2c_adapter em28xx_adap_template = { |
483 | #ifdef I2C_PEC | ||
484 | .owner = THIS_MODULE, | 472 | .owner = THIS_MODULE, |
485 | #else | ||
486 | .inc_use = inc_use, | ||
487 | .dec_use = dec_use, | ||
488 | #endif | ||
489 | .class = I2C_CLASS_TV_ANALOG, | 473 | .class = I2C_CLASS_TV_ANALOG, |
490 | .name = "em28xx", | 474 | .name = "em28xx", |
491 | .id = I2C_HW_B_EM28XX, | 475 | .id = I2C_HW_B_EM28XX, |