2023-03-24 03:10:22

by ye.xingchen

[permalink] [raw]
Subject: [PATCH] media: hantro: use devm_reset_control_array_get_optional_exclusive()

From: Ye Xingchen <[email protected]>

Switch to devm_reset_control_array_get_optional_exclusive() API.

Signed-off-by: Ye Xingchen <[email protected]>
---
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


2023-03-24 09:39:16

by Philipp Zabel

[permalink] [raw]
Subject: Re: [PATCH] media: hantro: use devm_reset_control_array_get_optional_exclusive()

On Fr, 2023-03-24 at 11:07 +0800, [email protected] wrote:
> From: Ye Xingchen <[email protected]>
>
> Switch to devm_reset_control_array_get_optional_exclusive() API.
>
> Signed-off-by: Ye Xingchen <[email protected]>

Reviewed-by: Philipp Zabel <[email protected]>

regards
Philipp