]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: tcpm: Release the role mux when exiting
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 30 Apr 2018 12:41:56 +0000 (15:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 May 2018 17:55:27 +0000 (10:55 -0700)
commit1de1ec81f414e890bd5de457a12f6401dcf433e1
tree24b7a3d4699f809e4b077011cd4ed1453497361a
parentc85029d8f8413fa499461aae56b5c3b3c5aeb68c
usb: typec: tcpm: Release the role mux when exiting

The ref count for the USB role switch device must be
released after we are done using the switch.

Fixes: 59e97c43ec6c ("usb: typec: tcpm: Set USB role switch to device mode when configured as such")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm.c