Commit a40bf559 authored by Henrik Kurelid's avatar Henrik Kurelid Committed by Stefan Richter

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: default avatarHenrik Kurelid <henrik@kurelid.se>
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 7199e523
...@@ -206,7 +206,7 @@ int firesat_dvbdev_init(struct firesat *firesat, struct device *dev) ...@@ -206,7 +206,7 @@ int firesat_dvbdev_init(struct firesat *firesat, struct device *dev)
err = DVB_REGISTER_ADAPTER(&firesat->adapter, err = DVB_REGISTER_ADAPTER(&firesat->adapter,
firedtv_model_names[firesat->type], firedtv_model_names[firesat->type],
THIS_MODULE, dev, adapter_nr); THIS_MODULE, dev, adapter_nr);
if (err) if (err < 0)
goto fail_log; goto fail_log;
/*DMX_TS_FILTERING | DMX_SECTION_FILTERING*/ /*DMX_TS_FILTERING | DMX_SECTION_FILTERING*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment