public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: hantro: use devm_reset_control_array_get_optional_exclusive()
@ 2023-03-24  3:07 ye.xingchen
  2023-03-24  9:37 ` Philipp Zabel
  0 siblings, 1 reply; 2+ messages in thread
From: ye.xingchen @ 2023-03-24  3:07 UTC (permalink / raw)
  To: p.zabel; +Cc: ezequiel, mchehab, linux-media, linux-rockchip, linux-kernel

From: Ye Xingchen <ye.xingchen@zte.com.cn>

Switch to devm_reset_control_array_get_optional_exclusive() API.

Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
---
 drivers/media/platform/verisilicon/hantro_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/verisilicon/hantro_drv.c b/drivers/media/platform/verisilicon/hantro_drv.c
index b0aeedae7b65..143a9a2edc4a 100644
--- a/drivers/media/platform/verisilicon/hantro_drv.c
+++ b/drivers/media/platform/verisilicon/hantro_drv.c
@@ -945,7 +945,7 @@ static int hantro_probe(struct platform_device *pdev)
 			return PTR_ERR(vpu->clocks[0].clk);
 	}

-	vpu->resets = devm_reset_control_array_get(&pdev->dev, false, true);
+	vpu->resets = devm_reset_control_array_get_optional_exclusive(&pdev->dev);
 	if (IS_ERR(vpu->resets))
 		return PTR_ERR(vpu->resets);

-- 
2.25.1

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

* Re: [PATCH] media: hantro: use devm_reset_control_array_get_optional_exclusive()
  2023-03-24  3:07 [PATCH] media: hantro: use devm_reset_control_array_get_optional_exclusive() ye.xingchen
@ 2023-03-24  9:37 ` Philipp Zabel
  0 siblings, 0 replies; 2+ messages in thread
From: Philipp Zabel @ 2023-03-24  9:37 UTC (permalink / raw)
  To: ye.xingchen; +Cc: ezequiel, mchehab, linux-media, linux-rockchip, linux-kernel

On Fr, 2023-03-24 at 11:07 +0800, ye.xingchen@zte.com.cn wrote:
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
> 
> Switch to devm_reset_control_array_get_optional_exclusive() API.
> 
> Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>

regards
Philipp

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

end of thread, other threads:[~2023-03-24  9:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-24  3:07 [PATCH] media: hantro: use devm_reset_control_array_get_optional_exclusive() ye.xingchen
2023-03-24  9:37 ` Philipp Zabel

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