aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <[email protected]>2009-09-18 01:44:24 -0300
committerMauro Carvalho Chehab <[email protected]>2010-05-18 00:40:26 -0300
commitbfc42b9a48467586296e4c3bbc5f48d814e2a00f (patch)
treec1ed7592f4c53f4c4abb2506a66d51c98e5551f9
parent1fade8d9fc8ff37866fd1d4a060133fa31dbeb95 (diff)
tm6000: Remove legacy code to work with older kernel versions
Such code has no space upstream and prevents tm6000 from compiling. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r--drivers/staging/tm6000/tm6000-i2c.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/staging/tm6000/tm6000-i2c.c b/drivers/staging/tm6000/tm6000-i2c.c
index 7a296ec82278..4da10f5ea024 100644
--- a/drivers/staging/tm6000/tm6000-i2c.c
+++ b/drivers/staging/tm6000/tm6000-i2c.c
@@ -179,18 +179,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
-
#define mass_write(addr, reg, data...) \
{ const static u8 _val[] = data; \
rc=tm6000_read_write_usb(dev,USB_DIR_OUT | USB_TYPE_VENDOR, \
@@ -209,12 +197,7 @@ static struct i2c_algorithm tm6000_algo = {
};
static struct i2c_adapter tm6000_adap_template = {
-#ifdef I2C_PEC
.owner = THIS_MODULE,
-#else
- .inc_use = inc_use,
- .dec_use = dec_use,
-#endif
.class = I2C_CLASS_TV_ANALOG,
.name = "tm6000",
.id = I2C_HW_B_TM6000,