The patch number 9676 was added via Mauro Carvalho Chehab <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Mauro Carvalho Chehab  <[EMAIL PROTECTED]>
em28xx: fix a regression caused by changeset 9630


If removing and reiserting the driver on some devices, tuner type will
be unset at the second time. This patch fixes this issue.

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>


---

 linux/drivers/media/video/em28xx/em28xx-cards.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -r 5589df6f7483 -r 602d3ac1f476 
linux/drivers/media/video/em28xx/em28xx-cards.c
--- a/linux/drivers/media/video/em28xx/em28xx-cards.c   Thu Nov 20 19:38:29 
2008 -0200
+++ b/linux/drivers/media/video/em28xx/em28xx-cards.c   Thu Nov 20 19:47:37 
2008 -0200
@@ -1806,7 +1806,8 @@ void em28xx_card_setup(struct em28xx *de
        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) {


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/602d3ac1f4764384e1b03a9ff8630955445136d5

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to