acrn-kernel/drivers/media/pci/sta2x11
Wei Yongjun d017650b40 [media] sta2x11_vip: fix error return code in sta2x11_vip_init_one()
The orig code will release all the resources if v4l2_device_register()
failed and return 0. But what we need in this case is to return an
negative error code to let the caller known we are failed.
So the patch save the return value of v4l2_device_register() to 'ret'
and return it when error.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-05-27 08:51:45 -03:00
..
Kconfig [media] sta2x11_vip: Fix compilation if I2C is not set 2013-04-16 20:06:34 -03:00
Makefile
sta2x11_vip.c [media] sta2x11_vip: fix error return code in sta2x11_vip_init_one() 2013-05-27 08:51:45 -03:00
sta2x11_vip.h