linux_dsm_epyc7002/drivers/media/platform/xilinx
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
..
Kconfig media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
Makefile media: xilinx: Use SPDX-License-Identifier 2018-12-03 13:40:05 -05:00
xilinx-dma.c media: xilinx: set device_caps in struct video_device 2019-07-22 15:08:47 -04:00
xilinx-dma.h media: xilinx: Use SPDX-License-Identifier 2018-12-03 13:40:05 -05:00
xilinx-tpg.c media: Use of_node_name_eq for node name comparisons 2018-12-07 08:28:54 -05:00
xilinx-vip.c media: media/platform: don't set description in ENUM_FMT 2019-07-22 14:43:59 -04:00
xilinx-vip.h media: media/platform: don't set description in ENUM_FMT 2019-07-22 14:43:59 -04:00
xilinx-vipp.c media: v4l2-async: Get fwnode reference when putting it to the notifier's list 2019-07-25 08:01:43 -04:00
xilinx-vipp.h media: xilinx: Use SPDX-License-Identifier 2018-12-03 13:40:05 -05:00
xilinx-vtc.c media: xilinx: Use SPDX-License-Identifier 2018-12-03 13:40:05 -05:00
xilinx-vtc.h media: xilinx: Use SPDX-License-Identifier 2018-12-03 13:40:05 -05:00