Skip to content

Commit 5baaf3b

Browse files
author
Lee Jones
committed
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>
1 parent f5f3583 commit 5baaf3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/dwc3/dwc3-st.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ static int st_dwc3_probe(struct platform_device *pdev)
227227
dev_vdbg(&pdev->dev, "glue-logic addr 0x%p, syscfg-reg offset 0x%x\n",
228228
dwc3_data->glue_base, dwc3_data->syscfg_reg_off);
229229

230-
dwc3_data->rstc_pwrdn = devm_reset_control_get(dev, "powerdown");
230+
dwc3_data->rstc_pwrdn =
231+
devm_reset_control_get_exclusive(dev, "powerdown");
231232
if (IS_ERR(dwc3_data->rstc_pwrdn)) {
232233
dev_err(&pdev->dev, "could not get power controller\n");
233234
ret = PTR_ERR(dwc3_data->rstc_pwrdn);

0 commit comments

Comments
 (0)