From 737735b802079cdc09584eeef9dc0ae971fd054d Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 14 Apr 2010 21:47:24 +0000 Subject: fix COM2 resource bug in fintek f71805f driver. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5438 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/superio/fintek/f71805f/superio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/superio/fintek/f71805f/superio.c b/src/superio/fintek/f71805f/superio.c index 6476e0a6f7..6cf2f621ec 100644 --- a/src/superio/fintek/f71805f/superio.c +++ b/src/superio/fintek/f71805f/superio.c @@ -42,7 +42,7 @@ static void pnp_exit_conf_state(device_t dev) 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 @@ static void f71805f_init(device_t dev) 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; } -- cgit v1.2.3