usb: phy: tahvo: fix error handling in tahvo_usb_probe()
commit86b9d66d1f3f4121853f46452d0a756217a55ea0
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 20 Oct 2017 22:02:07 +0000 (21 01:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2017 17:42:39 +0000 (9 18:42 +0100)
tree28287b47019e576b4d456ccdc1ea46e6342d5a21
parentb6ca48b5cd08a6dbeab8249e83dfd16b9eb87184
usb: phy: tahvo: fix error handling in tahvo_usb_probe()

[ Upstream commit ce035409bfa892a2fabb89720b542e1b335c3426 ]

If devm_extcon_dev_allocate() fails, we should disable clk before return.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: 860d2686fda7 ("usb: phy: tahvo: Use devm_extcon_dev_[allocate|register]() and replace deprecated API")
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-tahvo.c