media: ipu3-cio2: Fix PM runtime usage_count in driver unbind
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 21 Dec 2022 08:30:11 +0000 (09:30 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 6 Feb 2023 07:50:57 +0000 (08:50 +0100)
commit909d3096ac99fa2289f9b8945a3eab2269947a0a
tree197eb2643b68176f55217a1a8eecb7b811657f72
parentc5b6f99c91a24c09cc8048b74d40477caad9690c
media: ipu3-cio2: Fix PM runtime usage_count in driver unbind

Get the PM runtime usage_count and forbid PM runtime at driver unbind. The
opposite is being done in probe() already.

Fixes: commit c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CSI2 driver")
Cc: stable@vger.kernel.org # for >= 4.16
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/pci/intel/ipu3/ipu3-cio2-main.c