hwmon/w83627ehf: No need to initialize fan_min
authorJean Delvare <khali@linux-fr.org>
Sun, 24 Jun 2007 09:21:43 +0000 (11:21 +0200)
committerMark M. Hoffman <mhoffman@lightlink.com>
Thu, 19 Jul 2007 18:22:18 +0000 (14:22 -0400)
We don't need to initialize fan_min in this driver, as the fan_div
attributes are read-only.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/w83627ehf.c

index a78d3c2623badd2122d22f8c32ee855e7dd8a0d4..d2a26135b3136dae84838171e3e7b21d6f01b06f 100644 (file)
@@ -1269,11 +1269,6 @@ static int __devinit w83627ehf_probe(struct platform_device *pdev)
        /* Initialize the chip */
        w83627ehf_init_device(data);
 
-       /* A few vars need to be filled upon startup */
-       for (i = 0; i < 5; i++)
-               data->fan_min[i] = w83627ehf_read_value(data,
-                                  W83627EHF_REG_FAN_MIN[i]);
-
        data->vrm = vid_which_vrm();
        superio_enter(sio_data->sioreg);
        /* Set VID input sensibility if needed. In theory the BIOS should