aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-cards.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-11-20 16:47:37 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 14:53:37 -0500
commit31e0530c32701fc14b845ef84fe61b66e9c5398c (patch)
tree51e6433cbcfa9772f69108f2bea9b7102d61ff65 /drivers/media/video/em28xx/em28xx-cards.c
parent3ce6509456805904799bf669e82a8ea5126e92df (diff)
V4L/DVB (9676): em28xx: fix a regression caused by 22c90ec6a5e07173ee670dc2ca75e0df0a7772c0
If removing and reiserting the driver on some devices, tuner type will be unset at the second time. This patch fixes this issue. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-cards.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index e7d69d6ef566..5751b66564f4 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -1801,7 +1801,8 @@ void em28xx_card_setup(struct em28xx *dev)
1801 em28xx_set_model(dev); 1801 em28xx_set_model(dev);
1802 1802
1803 dev->tuner_type = em28xx_boards[dev->model].tuner_type; 1803 dev->tuner_type = em28xx_boards[dev->model].tuner_type;
1804 dev->tuner_addr = em28xx_boards[dev->model].tuner_addr; 1804 if (em28xx_boards[dev->model].tuner_addr)
1805 dev->tuner_addr = em28xx_boards[dev->model].tuner_addr;
1805 1806
1806 /* request some modules */ 1807 /* request some modules */
1807 switch (dev->model) { 1808 switch (dev->model) {