Random ITE Super I/O fixes.
[coreboot.git] / src / superio / ite / it8671f / superio.c
index 9fd60425e1ce32aad3e7c7289b7593d16a8973fb..9c5296df6cf4724c0bc1d0d12badaa928322e526 100644 (file)
 
 static void init(device_t dev)
 {
-       struct superio_ite_it8671f_config *conf;
+       struct superio_ite_it8671f_config *conf = dev->chip_info;
        struct resource *res0, *res1;
 
-       if (!dev->enabled) {
+       if (!dev->enabled)
                return;
-       }
-
-       conf = dev->chip_info;
 
        switch (dev->path.pnp.device) {
        case IT8671F_FDC: /* TODO. */