linux/drivers/media/common
Michael Krufky fab9bfbed2 V4L/DVB: tda18271: fix error detection during initialization of first instance
Fix error detection of failures during initialization of first instance:
Dont pass a function into the tda_fail macro. Instead, save the function
return value and pass that into the tda_fail macro.

This prevents the function from being called twice in cases of failure,
for example:

[19026.074070] tuner 4-0060: chip found @ 0xc0 (device #0)
[19026.087755] tda18271 4-0060: creating new instance
[19026.089965] Unknown device detected @ 4-0060, device not supported.
[19026.092233] Unknown device detected @ 4-0060, device not supported.
[19026.092241] tda18271_attach: [4-0060|M] error -22 on line 1275
[19026.092327] tda18271 4-0060: destroying instance

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-08-02 14:48:43 -03:00
..
tuners V4L/DVB: tda18271: fix error detection during initialization of first instance 2010-08-02 14:48:43 -03:00
Kconfig V4L/DVB (7133): Fix Kconfig dependencies 2008-02-18 11:14:53 -03:00
Makefile V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00
saa7146_core.c V4L/DVB (10502): saa7146: move v4l2 device registration to saa7146_vv. 2009-03-30 12:42:42 -03:00
saa7146_fops.c V4L/DVB: saa7146: fix regression of the av7110/budget-av driver 2010-05-06 19:20:50 -03:00
saa7146_hlp.c V4L/DVB (8128): saa7146: ->cpu_addr and friends are little-endian 2008-07-20 07:13:14 -03:00
saa7146_i2c.c tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
saa7146_vbi.c V4L/DVB (7237): Convert videobuf-dma-sg to generic DMA API 2008-04-24 14:07:44 -03:00
saa7146_video.c V4L/DVB: saa7146: fix up bytesperline if it is an impossible value 2010-05-06 19:19:04 -03:00