summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorYe Xingchen <ye.xingchen@zte.com.cn>2023-03-24 03:07:31 +0000
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-04-15 08:14:53 +0100
commit0b44232be77cc6ad898744127d6768d5f8952e13 (patch)
tree41a198db4af9b0b71c76fbb3cf8bb764b2bc94ef /drivers/media
parente8f27ebb39420121905d26a3bd73cfc89c4e17d3 (diff)
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/verisilicon/hantro_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/verisilicon/hantro_drv.c b/drivers/media/platform/verisilicon/hantro_drv.c
index 0a442b9dbd65..09c74a573ddb 100644
--- a/drivers/media/platform/verisilicon/hantro_drv.c
+++ b/drivers/media/platform/verisilicon/hantro_drv.c
@@ -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);