[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1604395500-8086-1-git-send-email-yejune.deng@gmail.com>
Date: Tue, 3 Nov 2020 17:25:00 +0800
From: Yejune Deng <yejune.deng@...il.com>
To: balbi@...nel.org, gregkh@...uxfoundation.org,
p.zabel@...gutronix.de
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
yejune.deng@...il.com
Subject: [PATCH] usb: dwc3: Replace of_reset_control_array_get()
of_reset_control_array_get_optional_exclusive() looks more readable
Signed-off-by: Yejune Deng <yejune.deng@...il.com>
---
drivers/usb/dwc3/dwc3-of-simple.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c
index e62ecd2..e358ff0 100644
--- a/drivers/usb/dwc3/dwc3-of-simple.c
+++ b/drivers/usb/dwc3/dwc3-of-simple.c
@@ -52,8 +52,7 @@ static int dwc3_of_simple_probe(struct platform_device *pdev)
if (of_device_is_compatible(np, "rockchip,rk3399-dwc3"))
simple->need_reset = true;
- simple->resets = of_reset_control_array_get(np, false, true,
- true);
+ simple->resets = of_reset_control_array_get_optional_exclusive(np);
if (IS_ERR(simple->resets)) {
ret = PTR_ERR(simple->resets);
dev_err(dev, "failed to get device resets, err=%d\n", ret);
--
1.9.1
Powered by blists - more mailing lists