]> git.baikalelectronics.ru Git - kernel.git/commit
phy: ti: tusb1210: Fix an error handling path in tusb1210_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 3 Apr 2022 13:06:08 +0000 (15:06 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 11 Apr 2022 17:37:11 +0000 (23:07 +0530)
commit079856a1dabb22a837c382ad39807f144dc5a6cb
treea3059b2a2eaddaf3e93340202c4db2ca05873db8
parentf7987f33aac621798b357348a978891d19c3f792
phy: ti: tusb1210: Fix an error handling path in tusb1210_probe()

tusb1210_probe_charger_detect() must be undone by a corresponding
tusb1210_remove_charger_detect() in the error handling path, as already
done in the remove function.

Fixes: 60333f8aab56 ("phy: ti: tusb1210: Add charger detection")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/07c4926c42243cedb3b6067a241bb486fdda01b5.1648991162.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-tusb1210.c