]> git.baikalelectronics.ru Git - kernel.git/commit
phy: tegra: xusb: Add missing tegra_xusb_port_unregister for usb2_port and ulpi_port
authorGaosheng Cui <cuigaosheng1@huawei.com>
Tue, 29 Nov 2022 11:16:34 +0000 (19:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:54 +0000 (11:35 +0200)
commite515edffb84b3ef9ff55bc91cd99d7def5596ddc
treef692e1d0214c097d6f114033bcce445bce514b44
parenteb3c892afb05813d80aa9f3dbdb792d3d9625206
phy: tegra: xusb: Add missing tegra_xusb_port_unregister for usb2_port and ulpi_port

[ Upstream commit e024854048e733391b31fe5a398704b31b9af803 ]

The tegra_xusb_port_unregister should be called when usb2_port
and ulpi_port map fails in tegra_xusb_add_usb2_port() or in
tegra_xusb_add_ulpi_port(), fix it.

Fixes: f3882f578fe6 ("phy: Add Tegra XUSB pad controller support")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20221129111634.1547747-1-cuigaosheng1@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/tegra/xusb.c