Commit 0b44232b authored by Ye Xingchen's avatar Ye Xingchen Committed by Mauro Carvalho Chehab

media: hantro: use devm_reset_control_array_get_optional_exclusive()

Switch to devm_reset_control_array_get_optional_exclusive() API.
Signed-off-by: default avatarYe Xingchen <ye.xingchen@zte.com.cn>
Reviewed-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent e8f27ebb
...@@ -972,7 +972,7 @@ static int hantro_probe(struct platform_device *pdev) ...@@ -972,7 +972,7 @@ static int hantro_probe(struct platform_device *pdev)
return PTR_ERR(vpu->clocks[0].clk); 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)) if (IS_ERR(vpu->resets))
return PTR_ERR(vpu->resets); return PTR_ERR(vpu->resets);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment