]> git.baikalelectronics.ru Git - kernel.git/commit
media: ipu3-cio2: Unregister device nodes first, then release resources
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 10 Oct 2018 08:01:05 +0000 (04:01 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 6 Nov 2018 12:11:36 +0000 (07:11 -0500)
commit5b6c3007e7065e393fdb896bc4c62937b602ab9f
treeff171517d00b57f627ce46823356bf25a5cec99c
parenta3e415d84e6499f46f60ef1f17a6e2b133e1588d
media: ipu3-cio2: Unregister device nodes first, then release resources

While there are issues related to object lifetime management, unregister
the media device first, followed immediately by other device nodes when
the driver is being unbound. Only then the resources needed by the driver
may be released. This is slightly safer.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Bingbu Cao <bingbu.cao@intel.com>
Reviewed-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/intel/ipu3/ipu3-cio2.c