]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[media] ngene: Fix return code if no demux was found
authorOliver Endriss <o.endriss@gmx.de>
Sun, 3 Jul 2011 16:57:26 +0000 (13:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:55:43 +0000 (17:55 -0300)
Fix return code if no demux was found (cineS2_probe).

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/ngene/ngene-cards.c

index 0d550a950e5337ae5940f8971f64e6692098cb8f..0d879cb2fb7914386b6d5c65c34df5de1e375fd9 100644 (file)
@@ -274,6 +274,7 @@ static int cineS2_probe(struct ngene_channel *chan)
                demod_attach_drxk(chan, i2c);
        } else {
                printk(KERN_ERR "No demod found on chan %d\n", chan->number);
+               return -ENODEV;
        }
        return 0;
 }