From: Cristian Ciocaltea Date: Sun, 11 Jun 2023 14:03:15 +0000 (+0100) Subject: nvmem: rockchip-otp: Use devm_reset_control_array_get_exclusive() X-Git-Tag: v6.5-rc1~77^2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d325c9dd2b6e94040ca722ddcadcd6af358dd2be;p=thirdparty%2Fkernel%2Flinux.git nvmem: rockchip-otp: Use devm_reset_control_array_get_exclusive() 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 Tested-by: Vincent Legoll Reviewed-by: Heiko Stuebner Signed-off-by: Srinivas Kandagatla Message-ID: <20230611140330.154222-12-srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index b62e001f91166..439aea1f8874f 100644 --- a/drivers/nvmem/rockchip-otp.c +++ b/drivers/nvmem/rockchip-otp.c @@ -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);