]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nvmem: rockchip-otp: Use devm_reset_control_array_get_exclusive()
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Sun, 11 Jun 2023 14:03:15 +0000 (15:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Jun 2023 11:42:17 +0000 (13:42 +0200)
In preparation to support new Rockchip OTP memory devices having
specific reset configurations, switch devm_reset_control_get() to
devm_reset_control_array_get_exclusive().

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tested-by: Vincent Legoll <vincent.legoll@gmail.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Message-ID: <20230611140330.154222-12-srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/rockchip-otp.c

index b62e001f911663342b56023ef9dc3fb4fc07e420..439aea1f8874fb0bc6e87442b0ea39605335fa06 100644 (file)
@@ -263,7 +263,7 @@ static int rockchip_otp_probe(struct platform_device *pdev)
        if (ret)
                return ret;
 
-       otp->rst = devm_reset_control_get(dev, "phy");
+       otp->rst = devm_reset_control_array_get_exclusive(dev);
        if (IS_ERR(otp->rst))
                return PTR_ERR(otp->rst);