mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user