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)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 6 Nov 2018 12:11:06 +0000 (07:11 -0500)
commit30efae3d789cd0714ef795545a46749236e29558
treefeeeb3ee411987407d89d3017467610656b0859d
parent003aedaed65d4f71f3f122ea1e079c648bab113e
media: omap3isp: Unregister media device as first

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>
drivers/media/platform/omap3isp/isp.c