From 2a1c09c089617ac05ae5716abebb72a26cbb4efe Mon Sep 17 00:00:00 2001 From: hlb194802 Date: Fri, 14 Jun 2024 09:22:11 +0000 Subject: [PATCH] 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 --- drivers/usb/dwc3/dwc3-thead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-thead.c b/drivers/usb/dwc3/dwc3-thead.c index 175fe180b..72ae26a4c 100644 --- a/drivers/usb/dwc3/dwc3-thead.c +++ b/drivers/usb/dwc3/dwc3-thead.c @@ -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);