commit | 328082376aea6016b63bca1e5c067a9539f9e8c9 | [log] [tgz] |
---|---|---|
author | Roger Quadros <rogerq@ti.com> | Fri Jun 10 14:38:02 2016 +0300 |
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | Tue Jun 21 10:38:43 2016 +0300 |
tree | 015614fec0a9c5ad9014f5892b8aa9ec0ac5381b | |
parent | b6d4e16e831376b676edb3463f2bdaa192e5f7be [diff] |
usb: dwc3: fix runtime PM in error path If there is a failure after pm_runtime_enable/get_sync() we need to call pm_runtime_disable/put_sync(). Otherwise it will lead to an unbalanced pm_runtime_enable() on the subsequent probe if the earlier probe bailed out due to -EPROBE_DEFER. pm_runtime_get_sync() can fail as well so deal with that case too. Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>