mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-06-21 09:12:26 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user