[media] blackfin: fix error return code in bcap_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 13 May 2013 07:52:16 +0000 (04:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 27 May 2013 11:51:43 +0000 (08:51 -0300)
commitd9fdbeff26b87e68d0e7f0d506e3cfc0f2a28d56
tree66cd706f8cea0a47d384f13b94a0c4f9bd36ff64
parent6ec735df78c63c3623c76e75a975390f60ae0640
[media] blackfin: fix error return code in bcap_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/blackfin/bfin_capture.c