Skip to content

Commit

Permalink
firedtv: fix registration - adapter number could only be zero
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Henrik Kurelid authored and Stefan Richter committed Feb 24, 2009
1 parent 7199e52 commit a40bf55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/firesat/firesat_dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ int firesat_dvbdev_init(struct firesat *firesat, struct device *dev)
err = DVB_REGISTER_ADAPTER(&firesat->adapter,
firedtv_model_names[firesat->type],
THIS_MODULE, dev, adapter_nr);
if (err)
if (err < 0)
goto fail_log;

/*DMX_TS_FILTERING | DMX_SECTION_FILTERING*/
Expand Down

0 comments on commit a40bf55

Please sign in to comment.