linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media: atmel: atmel-isc: Fix PM disable depth imbalance in atmel_isc_probe
@ 2022-01-05 11:10 Miaoqian Lin
  2022-01-06 12:42 ` kernel test robot
  2022-03-01  7:18 ` [PATCH v2] " Miaoqian Lin
  0 siblings, 2 replies; 9+ messages in thread
From: Miaoqian Lin @ 2022-01-05 11:10 UTC (permalink / raw)
  Cc: linmq006, Eugen Hristev, Mauro Carvalho Chehab, Nicolas Ferre,
	Alexandre Belloni, Ludovic Desroches, Hans Verkuil, linux-media,
	linux-arm-kernel, linux-kernel

The pm_runtime_enable will increase power disable depth.
If the probe fails, we should use pm_runtime_disable() to balance
pm_runtime_enable().

Fixes: 0a0e265 ("media: atmel: atmel-isc: split driver into driver base and isc")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
---
 drivers/media/platform/atmel/atmel-sama5d2-isc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/media/platform/atmel/atmel-sama5d2-isc.c b/drivers/media/platform/atmel/atmel-sama5d2-isc.c
index 1b2063cce0f7..88a81c3ada90 100644
--- a/drivers/media/platform/atmel/atmel-sama5d2-isc.c
+++ b/drivers/media/platform/atmel/atmel-sama5d2-isc.c
@@ -559,6 +559,9 @@ static int atmel_isc_probe(struct platform_device *pdev)
 cleanup_subdev:
 	isc_subdev_cleanup(isc);
 
+disable_pm_runtime:
+	pm_runtime_disable(dev);
+
 unregister_v4l2_device:
 	v4l2_device_unregister(&isc->v4l2_dev);
 
-- 
2.17.1


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

end of thread, other threads:[~2022-05-09 19:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-05 11:10 [PATCH] media: atmel: atmel-isc: Fix PM disable depth imbalance in atmel_isc_probe Miaoqian Lin
2022-01-06 12:42 ` kernel test robot
2022-03-01  7:18 ` [PATCH v2] " Miaoqian Lin
2022-03-01 13:51   ` Eugen.Hristev
2022-03-02  5:44     ` Miaoqian Lin
2022-03-02  6:17       ` Eugen.Hristev
2022-03-07  7:38   ` Hans Verkuil
2022-03-07  8:16     ` [PATCH v3] " Miaoqian Lin
2022-05-09 19:13       ` Eugen.Hristev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).