Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357088
b: refs/heads/master
c: ed2e330
h: refs/heads/master
v: v3
  • Loading branch information
Paul Bolle authored and Mauro Carvalho Chehab committed Dec 21, 2012
1 parent a168358 commit 57a88db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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: cb31c7487580a0cfc6eb253e604c1e51ac8eb3c8
refs/heads/master: ed2e33011451f655052ff1d3aa9ee936057d508b
6 changes: 3 additions & 3 deletions trunk/drivers/media/tuners/tda18212.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ struct dvb_frontend *tda18212_attach(struct dvb_frontend *fe,
{
struct tda18212_priv *priv = NULL;
int ret;
u8 uninitialized_var(val);
u8 val;

priv = kzalloc(sizeof(struct tda18212_priv), GFP_KERNEL);
if (priv == NULL)
Expand All @@ -296,8 +296,8 @@ struct dvb_frontend *tda18212_attach(struct dvb_frontend *fe,
if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */

dev_dbg(&priv->i2c->dev, "%s: ret=%d chip id=%02x\n", __func__, ret,
val);
if (!ret)
dev_dbg(&priv->i2c->dev, "%s: chip id=%02x\n", __func__, val);
if (ret || val != 0xc7) {
kfree(priv);
return NULL;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/media/tuners/tda18218.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c, struct tda18218_config *cfg)
{
struct tda18218_priv *priv = NULL;
u8 uninitialized_var(val);
u8 val;
int ret;
/* chip default registers values */
static u8 def_regs[] = {
Expand All @@ -302,8 +302,8 @@ struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe,

/* check if the tuner is there */
ret = tda18218_rd_reg(priv, R00_ID, &val);
dev_dbg(&priv->i2c->dev, "%s: ret=%d chip id=%02x\n", __func__, ret,
val);
if (!ret)
dev_dbg(&priv->i2c->dev, "%s: chip id=%02x\n", __func__, val);
if (ret || val != def_regs[R00_ID]) {
kfree(priv);
return NULL;
Expand Down

0 comments on commit 57a88db

Please sign in to comment.