3a17479d959ba2be89185b2f4274a463f1914f9e
[openwrt/staging/stintel.git] /
1 From d325c9dd2b6e94040ca722ddcadcd6af358dd2be Mon Sep 17 00:00:00 2001
2 From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
3 Date: Sun, 11 Jun 2023 15:03:15 +0100
4 Subject: [PATCH] nvmem: rockchip-otp: Use
5 devm_reset_control_array_get_exclusive()
6
7 In preparation to support new Rockchip OTP memory devices having
8 specific reset configurations, switch devm_reset_control_get() to
9 devm_reset_control_array_get_exclusive().
10
11 Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
12 Tested-by: Vincent Legoll <vincent.legoll@gmail.com>
13 Reviewed-by: Heiko Stuebner <heiko@sntech.de>
14 Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
15 Message-ID: <20230611140330.154222-12-srinivas.kandagatla@linaro.org>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17 ---
18 drivers/nvmem/rockchip-otp.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/nvmem/rockchip-otp.c
22 +++ b/drivers/nvmem/rockchip-otp.c
23 @@ -263,7 +263,7 @@ static int rockchip_otp_probe(struct pla
24 if (ret)
25 return ret;
26
27 - otp->rst = devm_reset_control_get(dev, "phy");
28 + otp->rst = devm_reset_control_array_get_exclusive(dev);
29 if (IS_ERR(otp->rst))
30 return PTR_ERR(otp->rst);
31