diff options
author | Cristian Ciocaltea <cristian.ciocaltea@collabora.com> | 2023-06-11 15:03:15 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-15 13:42:17 +0200 |
commit | d325c9dd2b6e94040ca722ddcadcd6af358dd2be (patch) | |
tree | ef74af8eb5788160c1d89c2b4287812f66b4cb95 /drivers/nvmem | |
parent | 30fd21cfb1e64ef20035559a8246f5fbf682c40e (diff) | |
download | linux-stable-d325c9dd2b6e94040ca722ddcadcd6af358dd2be.tar.gz linux-stable-d325c9dd2b6e94040ca722ddcadcd6af358dd2be.tar.bz2 linux-stable-d325c9dd2b6e94040ca722ddcadcd6af358dd2be.zip |
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 <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>
Diffstat (limited to 'drivers/nvmem')
-rw-r--r-- | drivers/nvmem/rockchip-otp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index b62e001f9116..439aea1f8874 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); |