Skip to content

Commit

Permalink
usb: dwc3: core: Clean up ULPI device
Browse files Browse the repository at this point in the history
If dwc3_core_init_mode() fails with deferred probe,
next probe fails on sysfs with

sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:11.0/dwc3.0.auto/dwc3.0.auto.ulpi'

To avoid this failure, clean up ULPI device.

Cc: <stable@vger.kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
  • Loading branch information
andy-shev authored and Felipe Balbi committed Nov 6, 2018
1 parent 6510223 commit 08fd9a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/dwc3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,7 @@ static int dwc3_probe(struct platform_device *pdev)

err5:
dwc3_event_buffers_cleanup(dwc);
dwc3_ulpi_exit(dwc);

err4:
dwc3_free_scratch_buffers(dwc);
Expand Down

0 comments on commit 08fd9a8

Please sign in to comment.