fix COM2 resource bug in fintek f71805f driver.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5438 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
6630ce15d7
commit
737735b802
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue