]> git.baikalelectronics.ru Git - kernel.git/commit
media: rockchip/vpu: Fix/re-order probe-error/remove path
authorJonas Karlman <jonas@kwiboo.se>
Thu, 25 Apr 2019 07:12:31 +0000 (03:12 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 15 May 2019 09:38:22 +0000 (05:38 -0400)
commitc060d4f1b719f1f4584bb53fe62edd32a3f528b9
tree46bc2951e79b87614e688fda56ec22ecf0e683cc
parentb393e269f0bce35b41530e5b211f5b1d7db17417
media: rockchip/vpu: Fix/re-order probe-error/remove path

media_device_cleanup() and v4l2_m2m_unregister_media_controller() were
missing in the probe error path.
While at it, re-order calls in the remove path to unregister/cleanup
things in the reverse order they were initialized/registered.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c