aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/firesat/firesat_dvb.c
diff options
context:
space:
mode:
authorHenrik Kurelid <henrik@kurelid.se>2008-12-15 02:17:12 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2009-02-24 08:51:28 -0500
commita40bf5591681f707afcf550cdcb4cc1697a29504 (patch)
tree6baddfae3483ae0c74feb5376e5f6e1bad122146 /drivers/media/dvb/firesat/firesat_dvb.c
parent7199e523ef71d24cd8030ea454fca00bb52d58f0 (diff)
firedtv: fix registration - adapter number could only be zero
There was a bug causing the initialization to fail if adapter number was greater than zero. The adapter was however registered which caused the driver to oops the second time initialization was tried. Signed-off-by: Henrik Kurelid <henrik@kurelid.se> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/media/dvb/firesat/firesat_dvb.c')
-rw-r--r--drivers/media/dvb/firesat/firesat_dvb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/firesat/firesat_dvb.c b/drivers/media/dvb/firesat/firesat_dvb.c
index cfa3a2e8edd1..cb36c0310199 100644
--- a/drivers/media/dvb/firesat/firesat_dvb.c
+++ b/drivers/media/dvb/firesat/firesat_dvb.c
@@ -206,7 +206,7 @@ int firesat_dvbdev_init(struct firesat *firesat, struct device *dev)
206 err = DVB_REGISTER_ADAPTER(&firesat->adapter, 206 err = DVB_REGISTER_ADAPTER(&firesat->adapter,
207 firedtv_model_names[firesat->type], 207 firedtv_model_names[firesat->type],
208 THIS_MODULE, dev, adapter_nr); 208 THIS_MODULE, dev, adapter_nr);
209 if (err) 209 if (err < 0)
210 goto fail_log; 210 goto fail_log;
211 211
212 /*DMX_TS_FILTERING | DMX_SECTION_FILTERING*/ 212 /*DMX_TS_FILTERING | DMX_SECTION_FILTERING*/