Files
linux/drivers/usb/roles
Wan Ahmad Zainie 009b1948e1 usb: roles: intel_xhci: Fix Unbalanced pm_runtime_enable
Add missing pm_runtime_disable() to remove(), in order to avoid
an Unbalanced pm_runtime_enable when the module is removed and
re-probed.

Error log:
root@intel-corei7-64:~# modprobe -r intel_xhci_usb_role_switch
root@intel-corei7-64:~# modprobe intel_xhci_usb_role_switch
intel_xhci_usb_sw intel_xhci_usb_sw: Unbalanced pm_runtime_enable!

Fixes: cb29684686 (usb: roles: intel_xhci: Enable runtime PM)
Cc: <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Signed-off-by: Wan Ahmad Zainie <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-10-09 16:13:42 +02:00
..
…
…