From: Oliver Endriss Date: Sun, 3 Jul 2011 16:57:26 +0000 (-0300) Subject: [media] ngene: Fix return code if no demux was found X-Git-Tag: MMI-PSA29.97-13-9~18729^2~128 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9396b8410a43347933a0ee0ae8b2eb9492f4bc2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] ngene: Fix return code if no demux was found Fix return code if no demux was found (cineS2_probe). Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/ngene/ngene-cards.c b/drivers/media/dvb/ngene/ngene-cards.c index 0d550a950e53..0d879cb2fb79 100644 --- a/drivers/media/dvb/ngene/ngene-cards.c +++ b/drivers/media/dvb/ngene/ngene-cards.c @@ -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; }