diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2012-11-21 05:38:13 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-11-21 05:38:13 -0500 |
commit | 851462444d421c223965b12b836bef63da61b57f (patch) | |
tree | 495baa14e638817941496c36e1443aed7dae0ea0 /drivers/media/dvb-frontends/lg2160.c | |
parent | 5a6ea4af0907f995dc06df21a9c9ef764c7cd3bc (diff) | |
parent | 6924d99fcdf1a688538a3cdebd1f135c22eec191 (diff) |
Merge branch 'for-3.7' of git://git.infradead.org/users/dedekind/l2-mtd
Conflicts:
drivers/mtd/nand/nand_base.c
Diffstat (limited to 'drivers/media/dvb-frontends/lg2160.c')
-rw-r--r-- | drivers/media/dvb-frontends/lg2160.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/dvb-frontends/lg2160.c b/drivers/media/dvb-frontends/lg2160.c index cc11260e99df..5fd14f840ab0 100644 --- a/drivers/media/dvb-frontends/lg2160.c +++ b/drivers/media/dvb-frontends/lg2160.c | |||
@@ -1421,8 +1421,8 @@ struct dvb_frontend *lg2160_attach(const struct lg2160_config *config, | |||
1421 | config ? config->i2c_addr : 0); | 1421 | config ? config->i2c_addr : 0); |
1422 | 1422 | ||
1423 | state = kzalloc(sizeof(struct lg216x_state), GFP_KERNEL); | 1423 | state = kzalloc(sizeof(struct lg216x_state), GFP_KERNEL); |
1424 | if (state == NULL) | 1424 | if (!state) |
1425 | goto fail; | 1425 | return NULL; |
1426 | 1426 | ||
1427 | state->cfg = config; | 1427 | state->cfg = config; |
1428 | state->i2c_adap = i2c_adap; | 1428 | state->i2c_adap = i2c_adap; |
@@ -1449,10 +1449,6 @@ struct dvb_frontend *lg2160_attach(const struct lg2160_config *config, | |||
1449 | state->frontend.dtv_property_cache.atscmh_parade_id = 1; | 1449 | state->frontend.dtv_property_cache.atscmh_parade_id = 1; |
1450 | 1450 | ||
1451 | return &state->frontend; | 1451 | return &state->frontend; |
1452 | fail: | ||
1453 | lg_warn("unable to detect LG216x hardware\n"); | ||
1454 | kfree(state); | ||
1455 | return NULL; | ||
1456 | } | 1452 | } |
1457 | EXPORT_SYMBOL(lg2160_attach); | 1453 | EXPORT_SYMBOL(lg2160_attach); |
1458 | 1454 | ||