diff mbox series

media: hantro: use devm_reset_control_array_get_optional_exclusive()

Message ID 202303241107315726171@zte.com.cn
State Accepted
Commit 0b44232be77cc6ad898744127d6768d5f8952e13
Headers show
Series media: hantro: use devm_reset_control_array_get_optional_exclusive() | expand

Commit Message

ye.xingchen@zte.com.cn March 24, 2023, 3:07 a.m. UTC
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(-)

Comments

Philipp Zabel March 24, 2023, 9:37 a.m. UTC | #1
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
diff mbox series

Patch

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);