usb driver: dwc3-thead: fix wrong regulator disable in dwc3_thead_pm_suspend regulater mismatch in dwc3_thead_pm_suspend with hub1v2 vs hubswitch

Change-Id: I33243a3cae63751f6b2c985a85d50916e85afdcd
This commit is contained in:
hlb194802
2024-06-14 09:22:11 +00:00
committed by Han Gao
parent 745c35085c
commit 2a1c09c089

View File

@@ -263,7 +263,7 @@ static int dwc3_thead_pm_suspend(struct device *dev)
dwc3_thead_assert(thead);
if (!IS_ERR(thead->hubswitch)) {
if (!IS_ERR(thead->hub1v2)) {
ret = regulator_disable(thead->hub1v2);
if (ret) {
dev_err(dev, "failed to disable regulator hub1v2 %d\n", ret);