upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:48:00 +0000 (11:48 +0900)
commit14659ea0e85d68fecf934f05ab27d84fb9b734a1
tree49e9b09b4774fcac896f3bfc746d6fd494dc687d
parent0bb764fec969ad087ef5f5b70fa73b8b2d502006
upstream: [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