summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2006-05-22 15:31:50 +0200
committerMauro Carvalho Chehab2006-06-25 06:59:57 +0200
commitf6320bd3df5964619346bac77b36d03c5a82f6fd (patch)
tree1a293e3ad89d4d4db1b486fad8cc383a20c932dd /drivers/media/video/em28xx
parentV4L/DVB (3967): Pwc-dec23 oops fix (diff)
downloadkernel-qcow2-linux-f6320bd3df5964619346bac77b36d03c5a82f6fd.tar.gz
kernel-qcow2-linux-f6320bd3df5964619346bac77b36d03c5a82f6fd.tar.xz
kernel-qcow2-linux-f6320bd3df5964619346bac77b36d03c5a82f6fd.zip
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.c16
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)
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)
{
@@ -480,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,