]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:45:02 +0000 (09:45 -0600)
commitf2180aacc07e3123f86473feda13aa50e74649af
treeab66303b844b8825b3a791a6e4303e652580d47c
parentc327bf85896a98fdc7fd566e362efcd48eab60bf
media: omap3isp: Unregister media device as first

BugLink: https://bugs.launchpad.net/bugs/1837161
[ 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>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/media/platform/omap3isp/isp.c