MLK-20325: ISI: fix reference count error when camera is not connected
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Mon, 12 Nov 2018 08:17:44 +0000 (16:17 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit48d13824d3bdf668798acd8880c75b056324606f
tree4e7136dc4c0fc36c03f500840d8eac9c1c3dd7eb
parent994a193f221ec52d00230a4d0ce11fe58f993b5c
MLK-20325: ISI: fix reference count error when camera is not connected

If camera is not connected and user try to use mem2mem function,
driver will return error but isi channel0 reference counter is
still increased by one. This will lead to mem2mem driver return
EBUSY error when user open mem2mem device, so correct this bug
in this patch.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/media/platform/imx8/mxc-isi-cap.c