Author: stepan Date: Wed Apr 14 23:47:24 2010 New Revision: 5438 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5438
Log: fix COM2 resource bug in fintek f71805f driver. Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/src/superio/fintek/f71805f/superio.c
Modified: trunk/src/superio/fintek/f71805f/superio.c ============================================================================== --- trunk/src/superio/fintek/f71805f/superio.c Wed Apr 14 22:47:45 2010 (r5437) +++ trunk/src/superio/fintek/f71805f/superio.c Wed Apr 14 23:47:24 2010 (r5438) @@ -42,7 +42,7 @@ static void f71805f_init(device_t dev) { struct superio_fintek_f71805f_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -54,7 +54,7 @@ init_uart8250(res0->base, &conf->com1); break; case F71805F_SP2: - res1 = find_resource(dev, PNP_IDX_IO0); + res0 = find_resource(dev, PNP_IDX_IO0); init_uart8250(res0->base, &conf->com2); break; }