[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 0d550a9..0d879cb 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;
 }