]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (12410): em28xx: Move the non-board dependent part to be outside em28xx_pre_c...
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 10 Aug 2009 05:57:57 +0000 (02:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Aug 2009 23:39:10 +0000 (20:39 -0300)
commit2db8e7de85e9c705100307ffd6a621f2e82a23e9
tree159d432b53f2cfd34a7752bc3abf49ac2d21a3a7
parent08b03ead4862a2721074c174dd6abb958076449d
V4L/DVB (12410): em28xx: Move the non-board dependent part to be outside em28xx_pre_card_setup()

em28xx_pre_card_setup() is meant to contain board-specific initialization. Also,
as autodetection sometimes occur only after having i2c bus enabled, this
function may need to be called later.

Moving those setups to happen outside the function avoids calling it twice without
need and without duplicating output lines at dmesg.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-cards.c