OSDN Git Service

media: si2168: change ts bus control logic
authorBrad Love <brad@nextdimension.cc>
Mon, 12 Feb 2018 20:19:04 +0000 (15:19 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 14:12:32 +0000 (09:12 -0500)
commit1844f49861cbd5dd8c289d3c4c8b4a76a4fe2d37
tree148e453320f710c2a4adcebdc80315673b2bd5d4
parentda2cf18ff883b6130b1a6e4a3e9402abcb9f5bc0
media: si2168: change ts bus control logic

Move the ts bus control function moved higher, enabling it
after configuring frontend and removeing ts_bus_ctrl callback.

While here, also add an error checking and re-add a comment
that were removed by commit 445877742ce3 ("media: si2168:
Add ts bus coontrol, turn off bus on sleep").

[mchehab@s-opensource.com: I ended by applying the first version,
 instead of the right one. So, this patch contains the diff and
 the v2 changelog instead]

Fixes: 445877742ce3 ("media: si2168: Add ts bus coontrol, turn off bus on sleep")

Signed-off-by: Brad Love <brad@nextdimension.cc>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/si2168.c