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)
commitfcd20e3c369caf7a3fec300c9c183b25a06e21b2
tree159d432b53f2cfd34a7752bc3abf49ac2d21a3a7
parent970cff36c0850e8193ac1162e42c7c11001b872d
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