usb: typec: intel_pmc_mux: Un-register the USB role switch
authorMadhusudanarao Amara <madhusudanarao.amara@intel.com>
Tue, 25 Aug 2020 18:38:11 +0000 (00:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Sep 2020 14:41:22 +0000 (16:41 +0200)
commit290a405ce318d036666c4155d5899eb8cd6e0d97
tree1ad67fd0cf8496fa798be59e252706fae202e265
parentcfd54fa83a5068b61b7eb28d3c117d8354c74c7a
usb: typec: intel_pmc_mux: Un-register the USB role switch

Added missing code for un-register USB role switch in the remove and
error path.

Cc: Stable <stable@vger.kernel.org> # v5.8
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Fixes: 6701adfa9693b ("usb: typec: driver for Intel PMC mux control")
Signed-off-by: Madhusudanarao Amara <madhusudanarao.amara@intel.com>
Link: https://lore.kernel.org/r/20200825183811.7262-1-madhusudanarao.amara@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c