Bluetooth: btmtkuart: Improve exception handling in btmtuart_probe()
authorChuhong Yuan <hslester96@gmail.com>
Fri, 29 May 2020 02:27:26 +0000 (10:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:30:56 +0000 (09:30 +0200)
commit999b59be5d203899ecf18ee0018a0a1ddd1a28f0
tree2ff9cf0382e788b3fb440ac18585f2fe7db7f9d3
parent2daf747c2831c39026b0194d4fd9871d182a2069
Bluetooth: btmtkuart: Improve exception handling in btmtuart_probe()

[ Upstream commit 4803c54ca24923a30664bea2a7772db6e7303c51 ]

Calls of the functions clk_disable_unprepare() and hci_free_dev()
were missing for the exception handling.
Thus add the missed function calls together with corresponding
jump targets.

Fixes: 055825614c6b ("Bluetooth: btmtkuart: add an implementation for clock osc property")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/btmtkuart.c