mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
memory: renesas-rpc-if: Use devm_reset_control_array_get_exclusive()
Replace devm_*_get_exclusive()->devm_*_array_get_exclusive() to support existing SoCs along with RZ/G3E as RZ/G3E has 2 resets. Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Link: https://lore.kernel.org/r/20250424090000.136804-4-biju.das.jz@bp.renesas.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This commit is contained in:
parent
228e72bf94
commit
c66fce831d
|
|
@ -603,7 +603,7 @@ static int rpcif_probe(struct platform_device *pdev)
|
|||
|
||||
rpc->size = resource_size(res);
|
||||
rpc->info = of_device_get_match_data(dev);
|
||||
rpc->rstc = devm_reset_control_get_exclusive(dev, NULL);
|
||||
rpc->rstc = devm_reset_control_array_get_exclusive(dev);
|
||||
if (IS_ERR(rpc->rstc))
|
||||
return PTR_ERR(rpc->rstc);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user