Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: imx7-mipi-csis: Add the missed v4l2_async_notifier_cleanup in remove
@ 2019-12-09  8:58 Chuhong Yuan
  2019-12-11 10:59 ` Rui Miguel Silva
  2019-12-12 11:51 ` Dan Carpenter
  0 siblings, 2 replies; 7+ messages in thread
From: Chuhong Yuan @ 2019-12-09  8:58 UTC (permalink / raw)
  Cc: devel, Fabio Estevam, Pengutronix Kernel Team, Greg Kroah-Hartman,
	Sascha Hauer, Chuhong Yuan, linux-kernel, Rui Miguel Silva,
	NXP Linux Team, Philipp Zabel, Steve Longerbeam,
	Mauro Carvalho Chehab, Shawn Guo, linux-arm-kernel, linux-media

All drivers in imx call v4l2_async_notifier_cleanup() after unregistering
the notifier except this driver.
This should be a miss and we need to add the call to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
---
 drivers/staging/media/imx/imx7-mipi-csis.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/media/imx/imx7-mipi-csis.c b/drivers/staging/media/imx/imx7-mipi-csis.c
index 99166afca071..2bfa85bb84e7 100644
--- a/drivers/staging/media/imx/imx7-mipi-csis.c
+++ b/drivers/staging/media/imx/imx7-mipi-csis.c
@@ -1105,6 +1105,7 @@ static int mipi_csis_remove(struct platform_device *pdev)
 	mipi_csis_debugfs_exit(state);
 	v4l2_async_unregister_subdev(&state->mipi_sd);
 	v4l2_async_notifier_unregister(&state->subdev_notifier);
+	v4l2_async_notifier_cleanup(&state->subdev_notifier);
 
 	pm_runtime_disable(&pdev->dev);
 	mipi_csis_pm_suspend(&pdev->dev, true);
-- 
2.24.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-12-13  2:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-09  8:58 [PATCH] media: imx7-mipi-csis: Add the missed v4l2_async_notifier_cleanup in remove Chuhong Yuan
2019-12-11 10:59 ` Rui Miguel Silva
2019-12-12 11:34   ` Hans Verkuil
2019-12-12 11:51 ` Dan Carpenter
2019-12-12 11:59   ` Philipp Zabel
2019-12-12 19:08   ` Rui Miguel Silva
2019-12-13  2:05     ` Steve Longerbeam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox