media: hantro: use devm_reset_control_array_get_optional_exclusive()
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> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
e8f27ebb39
commit
0b44232be7
@ -972,7 +972,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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user