summaryrefslogtreecommitdiff
path: root/common/fan.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/fan.c')
-rw-r--r--common/fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fan.c b/common/fan.c
index b3f4428af0..ae6a9fea98 100644
--- a/common/fan.c
+++ b/common/fan.c
@@ -512,7 +512,7 @@ static void pwm_fan_resume(void)
{
int fan;
for (fan = 0; fan < CONFIG_FANS; fan++)
- fan_set_enabled(fans[fan].ch, 1);
+ set_enabled(fan, 1);
}
DECLARE_HOOK(HOOK_CHIPSET_RESUME, pwm_fan_resume, HOOK_PRIO_DEFAULT);