usb: dwc3: meson-g12a: disable clk on error handling path in probe
authorZheng Zengkai <zhengzengkai@huawei.com>
Tue, 15 Dec 2020 02:54:59 +0000 (10:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:18:18 +0000 (20:18 +0100)
commit906b0510dde58d0eacad76b1bcb1264bb634f95a
tree653dfb3b8c1b2508817966737f53f2819cd74664
parent5a5ce1e75c77851022e82fa94d324ca3e61e9e0d
usb: dwc3: meson-g12a: disable clk on error handling path in probe

commit a5ada3dfe6a20f41f91448b9034a1ef8da3dc87d upstream.

dwc3_meson_g12a_probe() does not invoke clk_bulk_disable_unprepare()
on one error handling path. This patch fixes that.

Fixes: 347052e3bf1b ("usb: dwc3: meson-g12a: fix USB2 PHY initialization on G12A and A1 SoCs")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20201215025459.91794-1-zhengzengkai@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-meson-g12a.c