projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
316a286
)
usb: host: xhci-tegra: fix tegra_xusb_get_phy()
author
JC Kuo
<jckuo@nvidia.com>
Tue, 11 Aug 2020 09:25:53 +0000
(17:25 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 18 Aug 2020 11:06:30 +0000
(13:06 +0200)
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>
drivers/usb/host/xhci-tegra.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/xhci-tegra.c
b/drivers/usb/host/xhci-tegra.c
index 0489a316099a7df2e007a4d5ba311f7bc787e6ad..190923d8b246ee7c65436908bbebd1d6279f19c3 100644
(file)
--- 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];