Random ITE Super I/O fixes.
[coreboot.git] / src / superio / ite / it8673f / superio.c
index 4b986ded7ef5403ae057969b29c30970c6c3fb0b..e1d2f50a0f07a5e6acf6d60e98fc7b1cb400b9d5 100644 (file)
 
 static void init(device_t dev)
 {
-       struct superio_ite_it8673f_config *conf;
+       struct superio_ite_it8673f_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 IT8673F_FDC: /* TODO. */