X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmacintosh%2Ftherm_pm72.c;h=fb2e0707bea33b3d5bcc91cb27dfb261fab8df5a;hb=08559aee03be26f1300e0b97f98cf5975095ec7a;hp=32333f27d824d27f91144115268ef9e0a65cf9e7;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/macintosh/therm_pm72.c b/drivers/macintosh/therm_pm72.c index 32333f27d..fb2e0707b 100644 --- a/drivers/macintosh/therm_pm72.c +++ b/drivers/macintosh/therm_pm72.c @@ -317,20 +317,6 @@ static int fan_write_reg(int reg, const unsigned char *ptr, int nb) return nw; } -static int start_fcu(void) -{ - unsigned char buf = 0xff; - int rc; - - rc = fan_write_reg(0xe, &buf, 1); - if (rc < 0) - return -EIO; - rc = fan_write_reg(0x2e, &buf, 1); - if (rc < 0) - return -EIO; - return 0; -} - static int set_rpm_fan(int fan, int rpm) { unsigned char buf[2]; @@ -1025,12 +1011,6 @@ static int main_control_loop(void *x) down(&driver_lock); - if (start_fcu() < 0) { - printk(KERN_ERR "kfand: failed to start FCU\n"); - up(&driver_lock); - goto out; - } - /* Set the PCI fan once for now */ set_pwm_fan(SLOTS_FAN_PWM_ID, SLOTS_FAN_DEFAULT_PWM); @@ -1077,7 +1057,6 @@ static int main_control_loop(void *x) schedule_timeout(HZ - elapsed); } - out: DBG("main_control_loop ended\n"); ctrl_task = 0;