usb: dwc3: st: Use explicit reset_control_get_exclusive() API
authorLee Jones <lee.jones@linaro.org>
Tue, 28 Jun 2016 08:24:40 +0000 (09:24 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 1 Jul 2016 09:52:16 +0000 (10:52 +0100)
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>
drivers/usb/dwc3/dwc3-st.c

index b204617ea4e64ca16bea7795ff51bf331ac9b138..e77bacb8358a9f758ac54354f5ce8c8f4cb91a9a 100644 (file)
@@ -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);