summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/superio/fintek/f71805f/superio.c4
1 files changed, 2 insertions, 2 deletions
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;
}