Random ITE Super I/O fixes.
[coreboot.git] / src / superio / ite / it8718f / superio.c
index d0f971d23339772272058b40fe9a7194d67c738d..3bf2f2fc656daba36f3cd28ecfb0f4612e5faf58 100644 (file)
 
 static void init(device_t dev)
 {
-       struct superio_ite_it8718f_config *conf;
+       struct superio_ite_it8718f_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 IT8718F_FDC: /* TODO. */