media: vimc: Fix error return code in vimc_register_devices()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 8 Oct 2019 09:01:33 +0000 (06:01 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 Oct 2019 10:22:54 +0000 (07:22 -0300)
commit1edfa9b1687ed8aac39a0423345f8a76a1cff58c
tree5a53c52120d32509049c79c5186bfcd08ba33dc1
parent9e08117c9d4efc1e1bc6fce83dab856d9fd284b6
media: vimc: Fix error return code in vimc_register_devices()

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

Fixes: f13d5f361959 ("media: vimc: Collapse component structure into a single monolithic driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vimc/vimc-core.c