Skip to contentSkip to conversation

media: hantro: use devm_reset_control_array_get_optional_exclusive()

PATCH In review [email protected] 2 participants 2 messages Mar 24, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/media/platform/verisilicon/hantro_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/verisilicon/hantro_drv.c +1 -1
index b0aeedae7b65..143a9a2edc4a 100644
@@ -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);
 
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · 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.

regards
Philipp

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip