Author: uwe Date: Thu Nov 11 14:14:55 2010 New Revision: 6063 URL: https://tracker.coreboot.org/trac/coreboot/changeset/6063
Log: Remove superfluous Super I/O res0/res1 lines.
The pc_keyboard_init() function no longer takes any base addresses since r5152 (passed in via res0/res1 variables previously), so drop them.
Signed-off-by: Uwe Hermann uwe@hermann-uwe.de Acked-by: Patrick Georgi patrick@georgi-clan.de
Modified: trunk/src/superio/fintek/f71889/superio.c trunk/src/superio/ite/it8671f/superio.c trunk/src/superio/ite/it8673f/superio.c trunk/src/superio/ite/it8705f/superio.c trunk/src/superio/ite/it8712f/superio.c trunk/src/superio/ite/it8716f/superio.c trunk/src/superio/ite/it8718f/superio.c trunk/src/superio/nsc/pc8374/superio.c trunk/src/superio/nsc/pc87309/superio.c trunk/src/superio/nsc/pc87351/superio.c trunk/src/superio/nsc/pc87360/superio.c trunk/src/superio/nsc/pc87366/superio.c trunk/src/superio/nsc/pc87417/superio.c trunk/src/superio/nsc/pc87427/superio.c trunk/src/superio/nsc/pc97307/superio.c trunk/src/superio/nsc/pc97317/superio.c trunk/src/superio/smsc/fdc37m60x/superio.c trunk/src/superio/smsc/lpc47b272/superio.c trunk/src/superio/smsc/lpc47b397/superio.c trunk/src/superio/smsc/lpc47m10x/superio.c trunk/src/superio/smsc/lpc47m15x/superio.c trunk/src/superio/smsc/smscsuperio/superio.c trunk/src/superio/winbond/w83627dhg/superio.c trunk/src/superio/winbond/w83627ehg/superio.c trunk/src/superio/winbond/w83627hf/superio.c trunk/src/superio/winbond/w83627thf/superio.c trunk/src/superio/winbond/w83627thg/superio.c trunk/src/superio/winbond/w83627uhg/superio.c trunk/src/superio/winbond/w83977f/superio.c trunk/src/superio/winbond/w83977tf/superio.c
Modified: trunk/src/superio/fintek/f71889/superio.c ============================================================================== --- trunk/src/superio/fintek/f71889/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/fintek/f71889/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -57,7 +57,6 @@ init_uart8250(res0->base, &conf->com2); break; case F71889_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/ite/it8671f/superio.c ============================================================================== --- trunk/src/superio/ite/it8671f/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/ite/it8671f/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -29,7 +29,7 @@ static void init(device_t dev) { struct superio_ite_it8671f_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -48,8 +48,6 @@ case IT8671F_PP: /* TODO. */ break; case IT8671F_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; case IT8671F_KBCM: /* TODO. */
Modified: trunk/src/superio/ite/it8673f/superio.c ============================================================================== --- trunk/src/superio/ite/it8673f/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/ite/it8673f/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -29,7 +29,7 @@ static void init(device_t dev) { struct superio_ite_it8673f_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -50,8 +50,6 @@ case IT8673F_FAN: /* TODO. */ break; case IT8673F_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; case IT8673F_KBCM: /* TODO. */
Modified: trunk/src/superio/ite/it8705f/superio.c ============================================================================== --- trunk/src/superio/ite/it8705f/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/ite/it8705f/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -28,7 +28,7 @@ static void init(device_t dev) { struct superio_ite_it8705f_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return;
Modified: trunk/src/superio/ite/it8712f/superio.c ============================================================================== --- trunk/src/superio/ite/it8712f/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/ite/it8712f/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -46,7 +46,7 @@ static void it8712f_init(device_t dev) { struct superio_ite_it8712f_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -67,8 +67,6 @@ case IT8712F_EC: /* TODO. */ break; case IT8712F_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); set_kbc_ps2_mode(); pc_keyboard_init(&conf->keyboard); break;
Modified: trunk/src/superio/ite/it8716f/superio.c ============================================================================== --- trunk/src/superio/ite/it8716f/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/ite/it8716f/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -78,7 +78,7 @@ static void it8716f_init(device_t dev) { struct superio_ite_it8716f_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -99,8 +99,6 @@ init_ec(res0->base + EC_INDEX_PORT); break; case IT8716F_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/ite/it8718f/superio.c ============================================================================== --- trunk/src/superio/ite/it8718f/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/ite/it8718f/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -29,7 +29,7 @@ static void init(device_t dev) { struct superio_ite_it8718f_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -50,8 +50,6 @@ case IT8718F_EC: /* TODO. */ break; case IT8718F_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; case IT8718F_KBCM: /* TODO. */
Modified: trunk/src/superio/nsc/pc8374/superio.c ============================================================================== --- trunk/src/superio/nsc/pc8374/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/nsc/pc8374/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -34,7 +34,7 @@ static void init(device_t dev) { struct superio_nsc_pc8374_config *conf; - struct resource *res0, *res1; + struct resource *res0; /* Wishlist handle well known programming interfaces more * generically. */ @@ -52,8 +52,6 @@ init_uart8250(res0->base, &conf->com2); break; case PC8374_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/nsc/pc87309/superio.c ============================================================================== --- trunk/src/superio/nsc/pc87309/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/nsc/pc87309/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -30,7 +30,7 @@ static void init(device_t dev) { struct superio_nsc_pc87309_config *conf; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) { return; @@ -46,8 +46,6 @@ init_uart8250(res0->base, &conf->com2); break; case PC87309_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/nsc/pc87351/superio.c ============================================================================== --- trunk/src/superio/nsc/pc87351/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/nsc/pc87351/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -40,7 +40,7 @@ static void init(device_t dev) { struct superio_nsc_pc87351_config *conf; - struct resource *res0, *res1; + struct resource *res0; /* Wishlist handle well known programming interfaces more * generically. */ @@ -58,8 +58,6 @@ init_uart8250(res0->base, &conf->com2); break; case PC87351_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/nsc/pc87360/superio.c ============================================================================== --- trunk/src/superio/nsc/pc87360/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/nsc/pc87360/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -34,7 +34,7 @@ static void init(device_t dev) { struct superio_nsc_pc87360_config *conf; - struct resource *res0, *res1; + struct resource *res0; /* Wishlist handle well known programming interfaces more * generically. */ @@ -52,8 +52,6 @@ init_uart8250(res0->base, &conf->com2); break; case PC87360_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/nsc/pc87366/superio.c ============================================================================== --- trunk/src/superio/nsc/pc87366/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/nsc/pc87366/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -34,7 +34,7 @@ static void init(device_t dev) { struct superio_nsc_pc87366_config *conf; - struct resource *res0, *res1; + struct resource *res0; /* Wishlist handle well known programming interfaces more * generically. */ @@ -52,8 +52,6 @@ init_uart8250(res0->base, &conf->com2); break; case PC87366_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/nsc/pc87417/superio.c ============================================================================== --- trunk/src/superio/nsc/pc87417/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/nsc/pc87417/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -35,7 +35,7 @@ static void init(device_t dev) { struct superio_nsc_pc87417_config *conf; - struct resource *res0, *res1; + struct resource *res0; /* Wishlist handle well known programming interfaces more * generically. */ @@ -53,8 +53,6 @@ init_uart8250(res0->base, &conf->com2); break; case PC87417_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/nsc/pc87427/superio.c ============================================================================== --- trunk/src/superio/nsc/pc87427/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/nsc/pc87427/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -32,7 +32,7 @@ static void init(device_t dev) { struct superio_nsc_pc87427_config *conf; - struct resource *res0, *res1; + struct resource *res0; /* Wishlist handle well known programming interfaces more * generically. */ @@ -50,8 +50,6 @@ init_uart8250(res0->base, &conf->com2); break; case PC87427_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/nsc/pc97307/superio.c ============================================================================== --- trunk/src/superio/nsc/pc97307/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/nsc/pc97307/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -29,7 +29,7 @@ static void init(device_t dev) { struct superio_nsc_pc97307_config *conf; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) { return; @@ -53,8 +53,6 @@ pnp_write_config(dev, 0xf0, 0x40); /* Set KBC clock to 8 Mhz */ pnp_set_enable(dev, 1); /* Enable keyboard */
- res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break;
Modified: trunk/src/superio/nsc/pc97317/superio.c ============================================================================== --- trunk/src/superio/nsc/pc97317/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/nsc/pc97317/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -29,7 +29,7 @@ static void init(device_t dev) { struct superio_nsc_pc97317_config *conf; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) { return; @@ -53,8 +53,6 @@ pnp_write_config(dev, 0xf0, 0x40); /* Set KBC clock to 8 Mhz */ pnp_set_enable(dev, 1); /* Enable keyboard */
- res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break;
Modified: trunk/src/superio/smsc/fdc37m60x/superio.c ============================================================================== --- trunk/src/superio/smsc/fdc37m60x/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/smsc/fdc37m60x/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -29,7 +29,7 @@ static void init(device_t dev) { struct superio_smsc_fdc37m60x_config *conf; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) { return; @@ -51,8 +51,6 @@ init_uart8250(res0->base, &conf->com2); break; case FDC37M60X_KBCK: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; case FDC37M60X_AUX: /* TODO. */
Modified: trunk/src/superio/smsc/lpc47b272/superio.c ============================================================================== --- trunk/src/superio/smsc/lpc47b272/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/smsc/lpc47b272/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -126,7 +126,7 @@ static void lpc47b272_init(device_t dev) { struct superio_smsc_lpc47b272_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -143,8 +143,6 @@ break;
case LPC47B272_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/smsc/lpc47b397/superio.c ============================================================================== --- trunk/src/superio/smsc/lpc47b397/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/smsc/lpc47b397/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -67,7 +67,7 @@ static void lpc47b397_init(device_t dev) { struct superio_smsc_lpc47b397_config *conf; - struct resource *res0, *res1; + struct resource *res0; if (!dev->enabled) { return; } @@ -82,8 +82,6 @@ init_uart8250(res0->base, &conf->com2); break; case LPC47B397_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/smsc/lpc47m10x/superio.c ============================================================================== --- trunk/src/superio/smsc/lpc47m10x/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/smsc/lpc47m10x/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -124,7 +124,7 @@ static void lpc47m10x_init(device_t dev) { struct superio_smsc_lpc47m10x_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -141,8 +141,6 @@ break;
case LPC47M10X2_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/smsc/lpc47m15x/superio.c ============================================================================== --- trunk/src/superio/smsc/lpc47m15x/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/smsc/lpc47m15x/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -99,7 +99,7 @@ static void lpc47m15x_init(device_t dev) { struct superio_smsc_lpc47m15x_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -116,8 +116,6 @@ break;
case LPC47M15X_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/smsc/smscsuperio/superio.c ============================================================================== --- trunk/src/superio/smsc/smscsuperio/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/smsc/smscsuperio/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -205,7 +205,7 @@ static void smsc_init(device_t dev) { struct superio_smsc_smscsuperio_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0; int i, ld;
/* Do not initialize disabled devices. */ @@ -230,8 +230,6 @@ res0 = find_resource(dev, PNP_IDX_IO0); init_uart8250(res0->base, &conf->com2); } else if (ld == logical_device_table[i].devs[LD_KBC]) { - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); } }
Modified: trunk/src/superio/winbond/w83627dhg/superio.c ============================================================================== --- trunk/src/superio/winbond/w83627dhg/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/winbond/w83627dhg/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -40,7 +40,7 @@ static void w83627dhg_init(device_t dev) { struct superio_winbond_w83627dhg_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -55,8 +55,6 @@ init_uart8250(res0->base, &conf->com2); break; case W83627DHG_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/winbond/w83627ehg/superio.c ============================================================================== --- trunk/src/superio/winbond/w83627ehg/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/winbond/w83627ehg/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -108,7 +108,7 @@ static void w83627ehg_init(device_t dev) { struct superio_winbond_w83627ehg_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -123,8 +123,6 @@ init_uart8250(res0->base, &conf->com2); break; case W83627EHG_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; case W83627EHG_HWM:
Modified: trunk/src/superio/winbond/w83627hf/superio.c ============================================================================== --- trunk/src/superio/winbond/w83627hf/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/winbond/w83627hf/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -129,7 +129,7 @@ static void w83627hf_init(device_t dev) { struct superio_winbond_w83627hf_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -144,8 +144,6 @@ init_uart8250(res0->base, &conf->com2); break; case W83627HF_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; case W83627HF_HWM:
Modified: trunk/src/superio/winbond/w83627thf/superio.c ============================================================================== --- trunk/src/superio/winbond/w83627thf/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/winbond/w83627thf/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -46,7 +46,7 @@ static void w83627thf_init(device_t dev) { struct superio_winbond_w83627thf_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -61,8 +61,6 @@ init_uart8250(res0->base, &conf->com2); break; case W83627THF_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/winbond/w83627thg/superio.c ============================================================================== --- trunk/src/superio/winbond/w83627thg/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/winbond/w83627thg/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -45,7 +45,7 @@ static void w83627thg_init(device_t dev) { struct superio_winbond_w83627thg_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -60,8 +60,6 @@ init_uart8250(res0->base, &conf->com2); break; case W83627THG_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/winbond/w83627uhg/superio.c ============================================================================== --- trunk/src/superio/winbond/w83627uhg/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/winbond/w83627uhg/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -73,7 +73,7 @@ static void w83627uhg_init(device_t dev) { struct superio_winbond_w83627uhg_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -110,8 +110,6 @@ init_uart8250(res0->base, &conf->com6); break; case W83627UHG_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/winbond/w83977f/superio.c ============================================================================== --- trunk/src/superio/winbond/w83977f/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/winbond/w83977f/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -44,7 +44,7 @@ static void w83977f_init(device_t dev) { struct superio_winbond_w83977f_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -59,8 +59,6 @@ init_uart8250(res0->base, &conf->com2); break; case W83977F_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }
Modified: trunk/src/superio/winbond/w83977tf/superio.c ============================================================================== --- trunk/src/superio/winbond/w83977tf/superio.c Thu Nov 11 06:12:01 2010 (r6062) +++ trunk/src/superio/winbond/w83977tf/superio.c Thu Nov 11 14:14:55 2010 (r6063) @@ -46,7 +46,7 @@ static void w83977tf_init(device_t dev) { struct superio_winbond_w83977tf_config *conf = dev->chip_info; - struct resource *res0, *res1; + struct resource *res0;
if (!dev->enabled) return; @@ -61,8 +61,6 @@ init_uart8250(res0->base, &conf->com2); break; case W83977TF_KBC: - res0 = find_resource(dev, PNP_IDX_IO0); - res1 = find_resource(dev, PNP_IDX_IO1); pc_keyboard_init(&conf->keyboard); break; }