linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: dwc3: core: Replace devm_reset_control_array_get()
@ 2020-11-03  3:57 Yejune Deng
  2021-01-07 19:16 ` Dmitry Osipenko
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yejune Deng @ 2020-11-03  3:57 UTC (permalink / raw)
  To: balbi, gregkh, p.zabel; +Cc: linux-usb, linux-kernel, yejune.deng

devm_reset_control_array_get_optional_shared() looks more readable

Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
---
 drivers/usb/dwc3/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 841daec..b87acf0 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -1490,7 +1490,7 @@ static int dwc3_probe(struct platform_device *pdev)
 
 	dwc3_get_properties(dwc);
 
-	dwc->reset = devm_reset_control_array_get(dev, true, true);
+	dwc->reset = devm_reset_control_array_get_optional_shared(dev);
 	if (IS_ERR(dwc->reset))
 		return PTR_ERR(dwc->reset);
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-08 12:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-03  3:57 [PATCH] usb: dwc3: core: Replace devm_reset_control_array_get() Yejune Deng
2021-01-07 19:16 ` Dmitry Osipenko
2021-01-07 19:23   ` Greg KH
2021-01-07 20:44     ` Dmitry Osipenko
2021-01-07 19:33 ` Dmitry Osipenko
2021-01-08 12:27 ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).