From 4a88b437616264e238d5443c87bae1fecc9201c3 Mon Sep 17 00:00:00 2001 From: Manu Abraham Date: Sat, 23 Apr 2005 19:16:15 +0000 Subject: Fixed the NULL frontend registration bug, Patch by Steffen Motzer --- linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb') diff --git a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 0d3e84bb6..6f857c609 100644 --- a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c @@ -514,7 +514,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) state->bt = card->bt; /* DST is not a frontend, attaching the ASIC */ - if ((dst_attach(state, &card->dvb_adapter)) < 0) { + if ((dst_attach(state, &card->dvb_adapter)) == NULL) { printk("%s: Could not find a Twinhan DST.\n", __FUNCTION__); break; } -- cgit v1.2.3