diff options
author | Lee Jones <lee.jones@linaro.org> | 2016-06-28 10:24:40 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-07-01 11:52:16 +0200 |
commit | 5baaf3b9efe127d239038de9219d381f4d882b26 (patch) | |
tree | cfe6ee6f2eba8d2bae106710caba8d8c6d78a7c4 | |
parent | phy: phy-stih407-usb: Use explicit reset_control_get_exclusive() API (diff) | |
download | linux-5baaf3b9efe127d239038de9219d381f4d882b26.tar.xz linux-5baaf3b9efe127d239038de9219d381f4d882b26.zip |
usb: dwc3: st: Use explicit reset_control_get_exclusive() API
We're making all reset line users specify whether their lines are
shared with other IP or they operate them exclusively. In this case
the line is exclusively used only by this IP, so use the *_exclusive()
API accordingly.
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/usb/dwc3/dwc3-st.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-st.c b/drivers/usb/dwc3/dwc3-st.c index b204617ea4e6..e77bacb8358a 100644 --- a/drivers/usb/dwc3/dwc3-st.c +++ b/drivers/usb/dwc3/dwc3-st.c @@ -227,7 +227,8 @@ static int st_dwc3_probe(struct platform_device *pdev) dev_vdbg(&pdev->dev, "glue-logic addr 0x%p, syscfg-reg offset 0x%x\n", dwc3_data->glue_base, dwc3_data->syscfg_reg_off); - dwc3_data->rstc_pwrdn = devm_reset_control_get(dev, "powerdown"); + dwc3_data->rstc_pwrdn = + devm_reset_control_get_exclusive(dev, "powerdown"); if (IS_ERR(dwc3_data->rstc_pwrdn)) { dev_err(&pdev->dev, "could not get power controller\n"); ret = PTR_ERR(dwc3_data->rstc_pwrdn); |