linux/drivers/media/platform/qcom/camss
Sakari Ailus 016413d967 media: v4l2-async: Get fwnode reference when putting it to the notifier's list
The v4l2_async_notifier_add_fwnode_subdev() did not take a reference of
the added fwnode, relying on the caller to handle that instead, in essence
putting the fwnode to be added if there was an error.

As the reference is eventually released during the notifier cleanup, this
is not intuitive nor logical. Improve this by always getting a reference
when the function succeeds, and the caller releasing the reference when it
does not *itself* need it anymore.

Luckily, perhaps, there were just a handful of callers using the function.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-07-25 08:01:43 -04:00
..
camss-csid.c media: camss: add missing includes 2018-08-29 14:02:06 -04:00
camss-csid.h media: camss: Format configuration per hardware version 2018-08-02 06:35:09 -04:00
camss-csiphy-2ph-1-0.c media: camss: add missing includes 2018-08-29 14:02:06 -04:00
camss-csiphy-3ph-1-0.c media: camss: add missing includes 2018-08-29 14:02:06 -04:00
camss-csiphy.c media: camss: add missing includes 2018-08-29 14:02:06 -04:00
camss-csiphy.h media: camss: Format configuration per hardware version 2018-08-02 06:35:09 -04:00
camss-ispif.c media: camss: add missing includes 2018-08-29 14:02:06 -04:00
camss-ispif.h media: camss: Format configuration per hardware version 2018-08-02 06:35:09 -04:00
camss-vfe-4-1.c media: camss: add missing includes 2018-08-29 14:02:06 -04:00
camss-vfe-4-7.c media: camss: add missing includes 2018-08-29 14:02:06 -04:00
camss-vfe.c media: camss: Take in account sensor skip frames 2018-12-03 14:27:17 -05:00
camss-vfe.h media: camss: vfe: Add support for UYVY output from VFE on 8x96 2018-08-02 06:37:48 -04:00
camss-video.c media: v4l2: Get rid of ->vidioc_enum_fmt_vid_{cap, out}_mplane 2019-06-05 07:48:32 -04:00
camss-video.h
camss.c media: v4l2-async: Get fwnode reference when putting it to the notifier's list 2019-07-25 08:01:43 -04:00
camss.h media: camss: Take in account sensor skip frames 2018-12-03 14:27:17 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00