summaryrefslogtreecommitdiff
path: root/chip/npcx/fan.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/npcx/fan.c')
-rw-r--r--chip/npcx/fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/npcx/fan.c b/chip/npcx/fan.c
index c14d4e20ed..c49707592b 100644
--- a/chip/npcx/fan.c
+++ b/chip/npcx/fan.c
@@ -235,7 +235,7 @@ static int fan_all_disabled(void)
{
int ch;
- for (ch = 0; ch < CONFIG_FANS; ch++)
+ for (ch = 0; ch < fan_get_count(); ch++)
if (fan_status[ch].auto_status != FAN_STATUS_STOPPED)
return 0;
return 1;