Random ITE Super I/O fixes.
[coreboot.git] / src / superio / ite / it8661f / superio.c
index 7c5294d65bcbcc3262e4f80ea79a456c5957bd94..e367ab855560b709a9f27527bdf352024026cf91 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-/* This chip doesn't seem to have keyboard and mouse support. */
-
 #include <device/device.h>
 #include <device/pnp.h>
 #include <uart8250.h>
 
 static void init(device_t dev)
 {
-       struct superio_ite_it8661f_config *conf;
+       struct superio_ite_it8661f_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 IT8661F_FDC: /* TODO. */