Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29944
b: refs/heads/master
c: f6320bd
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jun 25, 2006
1 parent f67b6a9 commit 8cd4e5b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7923dee035ec81f6e4ad696e3edddbdd34d37873
refs/heads/master: f6320bd3df5964619346bac77b36d03c5a82f6fd
16 changes: 0 additions & 16 deletions trunk/drivers/media/video/em28xx/em28xx-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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,
Expand Down
8 changes: 0 additions & 8 deletions trunk/drivers/media/video/tvmixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,6 @@ static int tvmixer_open(struct inode *inode, struct file *file)

/* lock bttv in memory while the mixer is in use */
file->private_data = mix;
#ifndef I2C_PEC
if (client->adapter->inc_use)
client->adapter->inc_use(client->adapter);
#endif
if (client->adapter->owner)
try_module_get(client->adapter->owner);
return 0;
Expand All @@ -217,10 +213,6 @@ static int tvmixer_release(struct inode *inode, struct file *file)
return -ENODEV;
}

#ifndef I2C_PEC
if (client->adapter->dec_use)
client->adapter->dec_use(client->adapter);
#endif
if (client->adapter->owner)
module_put(client->adapter->owner);
return 0;
Expand Down

0 comments on commit 8cd4e5b

Please sign in to comment.