nvmem: rockchip-otp: Update driver to use reset array API

This patch also makes resets as optional.

Change-Id: I25c0be3e811fafad824dd9096a6b89b3fc7d4b47
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
Finley Xiao
2020-02-27 20:57:45 +08:00
committed by Tao Huang
parent 0fa9ee931b
commit 60c3b5abb6

View File

@@ -243,7 +243,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_optional_exclusive(dev);
if (IS_ERR(otp->rst))
return PTR_ERR(otp->rst);