W83627HF: remove unused function
authorSven Schnelle <svens@stackframe.org>
Tue, 10 Jan 2012 21:33:01 +0000 (22:33 +0100)
committerSven Schnelle <svens@stackframe.org>
Wed, 11 Jan 2012 08:13:16 +0000 (09:13 +0100)
When CONFIG_EXPERT is set, compilation fails with:

src/superio/winbond/w83627hf/superio.c:61:13: error: ‘w83627hf_16_bit_addr_qual’ defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors

This function isn't used in the code, so just remove it.

Change-Id: I117e221fb3c3a20a7d7e7e2e86d7dbfdffc2cbff
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/533
Tested-by: build bot (Jenkins)
src/superio/winbond/w83627hf/superio.c

index 8ecec62bbe049e3195bfe3ccb143c7b6f8fd93d0..1d1b169e838f2dbdf946467e8046128af5ed3602 100644 (file)
@@ -57,20 +57,6 @@ static u8 pnp_read_index(u16 port, u8 reg)
        return inb(port + 1);
 }
 
-#if CONFIG_EXPERT
-static void w83627hf_16_bit_addr_qual(device_t dev)
-{
-       u8 reg8;
-
-       /* Enable 16 bit address qualification. */
-       pnp_enter_ext_func_mode(dev);
-       reg8 = pnp_read_config(dev, 0x24);
-       reg8 |= (1 << 7);
-       pnp_write_config(dev, 0x24, reg8);
-       pnp_exit_ext_func_mode(dev);
-}
-#endif
-
 static void enable_hwm_smbus(device_t dev)
 {
        u8 reg8;