Commit d54343a8 authored by JC Kuo's avatar JC Kuo Committed by Greg Kroah-Hartman

usb: host: xhci-tegra: fix tegra_xusb_get_phy()

tegra_xusb_get_phy() should take input argument "name".
Signed-off-by: default avatarJC Kuo <jckuo@nvidia.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200811092553.657762-1-jckuo@nvidia.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 316a2868
...@@ -1136,7 +1136,7 @@ static struct phy *tegra_xusb_get_phy(struct tegra_xusb *tegra, char *name, ...@@ -1136,7 +1136,7 @@ static struct phy *tegra_xusb_get_phy(struct tegra_xusb *tegra, char *name,
unsigned int i, phy_count = 0; unsigned int i, phy_count = 0;
for (i = 0; i < tegra->soc->num_types; i++) { 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))) strlen(name)))
return tegra->phys[phy_count+port]; return tegra->phys[phy_count+port];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment