media: omap3isp: Unregister media device as first
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 9 Oct 2018 11:49:49 +0000 (07:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:18:45 +0000 (09:18 +0100)
commitbcdfccfd8dee5f024b618a3ec4df17fab1296658
tree864b54b6a3be2f8aae38f5460ea1619fbefae99f
parentca48e5e30b75a28c12c43c7428c95735e4885e6b
media: omap3isp: Unregister media device as first

[ Upstream commit 30efae3d789cd0714ef795545a46749236e29558 ]

While there are issues related to object lifetime management, unregister the
media device first when the driver is being unbound. This is slightly
safer.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/omap3isp/isp.c