linux/drivers/media
Jonathan Nieder 58fae6739f [media] DVB: dvb_net_init: return -errno on error
dvb_net_init unconditionally returns 0.  Callers such as
videobuf_dvb_register_frontend examine dvbnet->dvbdev instead of the
return value to tell whether the operation succeeded.  If it has been
set to a valid pointer, success; if it was left equal to NULL,
failure.

Alas, there is an edge case where that logic does not work as well:
when network support has been compiled out (CONFIG_DVB_NET=n), we want
dvb_net_init and related operations to behave as no-ops and always
succeed, but there is no appropriate value to which to set dvb->dvbdev
to indicate this.

Let dvb_net_init return a meaningful error code, as preparation for
adapting callers to look at that instead.

The only immediate impact of this patch should be to make the few
callers that already check for an error code from dvb_net_init behave
a little more sensibly when it fails.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-01-06 12:40:46 -02:00
..
common [media] mt2063: fix get_if_frequency call 2012-01-05 11:06:12 -02:00
dvb [media] DVB: dvb_net_init: return -errno on error 2012-01-06 12:40:46 -02:00
radio [media] wl128x: fmdrv_tx: fix signedness bugs 2011-12-30 17:01:52 -02:00
rc Merge tag 'v3.2-rc7' into staging/for_v3.3 2011-12-30 13:59:37 -02:00
video [media] vpif_capture.c: v4l2_device_register() is called too late in vpif_probe() 2012-01-06 11:48:22 -02:00
Kconfig [media] DVB: dvb-net, make the kconfig text helpful 2011-07-27 17:53:09 -03:00
Makefile
media-device.c [media] media: fix truncated entity specification 2011-12-20 09:31:50 -02:00
media-devnode.c
media-entity.c