usb: dwc3: pci: Switch to devm_acpi_dev_add_driver_gpios()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 22 Mar 2017 14:08:07 +0000 (16:08 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Mar 2017 12:39:13 +0000 (13:39 +0100)
commit4a56e413b50c11df35e6c6909312ce7418848b37
tree0450e50790fd6d3e4ce6bcf8e760d440e36f59ec
parent96530b3777a7852222ca5ffa5eb20afed1be13bf
usb: dwc3: pci: Switch to devm_acpi_dev_add_driver_gpios()

Switch to use managed variant of acpi_dev_add_driver_gpios() to simplify
error path and fix potentially wrong assignment if ->probe() fails.

While here, add a debug message in case assignment fails to allow user
see the cause of a potential issue.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/usb/dwc3/dwc3-pci.c