]> git.baikalelectronics.ru Git - kernel.git/commit
phy: ti: dm816x: Fix the error handling path in 'dm816x_usb_phy_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 5 Jun 2021 13:17:43 +0000 (15:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:53:46 +0000 (16:53 +0200)
commitc12113ef497aac75e0ba6db07a297bb50fdd3d16
tree5fe5f7297d6c69d2beaa809174725bfaa162fe2d
parent2337ff1bb6bdfb599c02152449261085b3835171
phy: ti: dm816x: Fix the error handling path in 'dm816x_usb_phy_probe()

[ Upstream commit f7eedcb8539ddcbb6fe7791f1b4ccf43f905c72f ]

Add an error handling path in the probe to release some resources, as
already done in the remove function.

Fixes: ee979fb381bc ("phy: Add a driver for dm816x USB PHY")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/ac5136881f6bdec50be19b3bf73b3bc1b15ef1f1.1622898974.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/ti/phy-dm816x-usb.c