diff options
author | Thierry Reding <treding@nvidia.com> | 2019-02-21 18:25:54 +0300 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2019-03-20 13:18:36 +0300 |
commit | f31d5c24fb2ea6fcfa4d300886eb87b662fbc0da (patch) | |
tree | 8c81687437184252d7491aa3bfe9a6dc3c7bcbd8 /drivers/usb/dwc3/dwc3-of-simple.c | |
parent | c84b0326d5e4fe08d493f6fff245da2ad473f4ae (diff) | |
download | linux-f31d5c24fb2ea6fcfa4d300886eb87b662fbc0da.tar.xz |
reset: Add acquired flag to of_reset_control_array_get()
In order to be able to request an array of reset controls in acquired or
released mode, add the acquired flag to of_reset_control_array_get() and
pass the flag to subsequent calls of __of_reset_control_get().
Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-of-simple.c')
-rw-r--r-- | drivers/usb/dwc3/dwc3-of-simple.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 4c2771c5e727..67ce2037472d 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -107,7 +107,8 @@ static int dwc3_of_simple_probe(struct platform_device *pdev) simple->pulse_resets = true; } - simple->resets = of_reset_control_array_get(np, shared_resets, true); + simple->resets = of_reset_control_array_get(np, shared_resets, true, + true); if (IS_ERR(simple->resets)) { ret = PTR_ERR(simple->resets); dev_err(dev, "failed to get device resets, err=%d\n", ret); |