From 0d3cde9062e1a9890b5b735fd0bcacba5c4428e2 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 5 Jan 2015 13:03:43 -0800 Subject: superio/smsc/lpc47n217: Drop dead code This code is unused, and the same functionality is in superiotool already. Change-Id: I7bf667e2e2bfc8fdedcdbe09bf420abf47b1ee97 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/8112 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- src/superio/smsc/lpc47n217/superio.c | 40 ------------------------------------ 1 file changed, 40 deletions(-) (limited to 'src/superio') diff --git a/src/superio/smsc/lpc47n217/superio.c b/src/superio/smsc/lpc47n217/superio.c index 96dd4e23df..85de3592db 100644 --- a/src/superio/smsc/lpc47n217/superio.c +++ b/src/superio/smsc/lpc47n217/superio.c @@ -276,43 +276,3 @@ static void pnp_exit_conf_state(struct device *dev) { outb(0xaa, dev->path.pnp.port); } - -#if 0 -/** - * Print the values of all of the LPC47N217's configuration registers. - * - * NOTE: The LPC47N217 must be in config mode when this function is called. - * - * @param dev Pointer to structure describing a Super I/O device. - */ -static void dump_pnp_device(struct device *dev) -{ - int i; - print_debug("\n"); - - for (i = 0; i <= LPC47N217_MAX_CONFIG_REGISTER; i++) { - u8 register_value; - - if ((i & 0x0f) == 0) { - print_debug_hex8(i); - print_debug_char(':'); - } - - /* - * Skip over 'register' that would cause exit from - * configuration mode. - */ - if (i == 0xaa) - register_value = 0xaa; - else - register_value = pnp_read_config(dev, i); - - print_debug_char(' '); - print_debug_hex8(register_value); - if ((i & 0x0f) == 0x0f) - print_debug("\n"); - } - - print_debug("\n"); -} -#endif -- cgit v1.2.3