summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-tegra.c
diff options
context:
space:
mode:
authorJC Kuo <jckuo@nvidia.com>2020-08-11 17:25:53 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-18 13:06:30 +0200
commitd54343a87732726b04ac5af873916b5ed4f52932 (patch)
tree44a805fe7bfc65a8ec008920e21a940b74ecac5f /drivers/usb/host/xhci-tegra.c
parent316a2868bc269be8c6e69ccc3a1f902a3f518eb9 (diff)
downloadlinux-d54343a87732726b04ac5af873916b5ed4f52932.tar.gz
linux-d54343a87732726b04ac5af873916b5ed4f52932.tar.bz2
linux-d54343a87732726b04ac5af873916b5ed4f52932.zip
usb: host: xhci-tegra: fix tegra_xusb_get_phy()
tegra_xusb_get_phy() should take input argument "name". Signed-off-by: JC Kuo <jckuo@nvidia.com> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20200811092553.657762-1-jckuo@nvidia.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-tegra.c')
-rw-r--r--drivers/usb/host/xhci-tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
index 0489a316099a..190923d8b246 100644
--- a/drivers/usb/host/xhci-tegra.c
+++ b/drivers/usb/host/xhci-tegra.c
@@ -1136,7 +1136,7 @@ static struct phy *tegra_xusb_get_phy(struct tegra_xusb *tegra, char *name,
unsigned int i, phy_count = 0;
for (i = 0; i < tegra->soc->num_types; i++) {
- if (!strncmp(tegra->soc->phy_types[i].name, "usb2",
+ if (!strncmp(tegra->soc->phy_types[i].name, name,
strlen(name)))
return tegra->phys[phy_count+port];