]> git.karo-electronics.de Git - linux-beck.git/commitdiff
V4L/DVB (9676): em28xx: fix a regression caused by 22c90ec6a5e07173ee670dc2ca75e0df0a...
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 20 Nov 2008 21:47:37 +0000 (18:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:37 +0000 (17:53 -0200)
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>
drivers/media/video/em28xx/em28xx-cards.c

index e7d69d6ef566fbfcd357210548d095f0316ce7e3..5751b66564f436747e6cc9b8b2f24cd544fd5f67 100644 (file)
@@ -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) {