summaryrefslogtreecommitdiff
path: root/chip/it83xx/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/it83xx/clock.c')
-rw-r--r--chip/it83xx/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/it83xx/clock.c b/chip/it83xx/clock.c
index 0fd7335080..28827d11eb 100644
--- a/chip/it83xx/clock.c
+++ b/chip/it83xx/clock.c
@@ -495,7 +495,7 @@ void __enter_hibernate(uint32_t seconds, uint32_t microseconds)
* Disable integrated pd modules in hibernate for
* better power consumption.
*/
- for (i = 0; i < USBPD_PORT_COUNT; i++)
+ for (i = 0; i < IT83XX_USBPD_PHY_PORT_COUNT; i++)
it83xx_disable_pd_module(i);
#endif