Ensure that unnecessary features are powered down at the end of the
attach() function.  If the configuration requires the loop thru or
xtout features, they will remain enabled.

Thanks to Antti Palosaari for noticing the additional power consumption.

Cc: Antti Palosaari <cr...@iki.fi>
Signed-off-by: Michael Krufky <mkru...@linuxtv.org>
---
 drivers/media/tuners/tda18271-fe.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/media/tuners/tda18271-fe.c 
b/drivers/media/tuners/tda18271-fe.c
index 2e67f44..5f5d866 100644
--- a/drivers/media/tuners/tda18271-fe.c
+++ b/drivers/media/tuners/tda18271-fe.c
@@ -1323,6 +1323,9 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend 
*fe, u8 addr,
        if (tda18271_debug & (DBG_MAP | DBG_ADV))
                tda18271_dump_std_map(fe);
 
+       ret = tda18271_sleep(fe);
+       tda_fail(ret);
+
        return fe;
 fail:
        mutex_unlock(&tda18271_list_mutex);
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to