Skip to content

Commit

Permalink
V4L/DVB (9676): em28xx: fix a regression caused by 22c90ec6a5e07173ee…
Browse files Browse the repository at this point in the history
…670dc2ca75e0df0a7772c0

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>
  • Loading branch information
Mauro Carvalho Chehab committed Dec 29, 2008
1 parent 3ce6509 commit 31e0530
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/video/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,8 @@ void em28xx_card_setup(struct em28xx *dev)
em28xx_set_model(dev);

dev->tuner_type = em28xx_boards[dev->model].tuner_type;
dev->tuner_addr = em28xx_boards[dev->model].tuner_addr;
if (em28xx_boards[dev->model].tuner_addr)
dev->tuner_addr = em28xx_boards[dev->model].tuner_addr;

/* request some modules */
switch (dev->model) {
Expand Down

0 comments on commit 31e0530

Please sign in to comment.