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)
commitfc8670d1f72b746ff3a5fe441f1fca4c4dba0e6f
tree46bc2951e79b87614e688fda56ec22ecf0e683cc
parentf6d080f73a8fa0ff1cca84ea5bb73aafa9f538d4
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