memory: renesas-rpc-if: Use devm_reset_control_array_get_exclusive()
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 24 Apr 2025 08:59:51 +0000 (09:59 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 1 May 2025 10:21:56 +0000 (12:21 +0200)
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>
drivers/memory/renesas-rpc-if.c

index 64618a2d09f7c6ea3b4737181649b7c58c00030b..9f3ac5cb9ff47ef37247d681b338049c5aaf040a 100644 (file)
@@ -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);