From: Bin Meng Date: Mon, 24 Aug 2015 08:00:03 +0000 (-0700) Subject: x86: i8042: Remove unused codes X-Git-Tag: v2015.10-rc3~92^2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5e653b0609cd256572a2e97a8449489ca84de017;p=u-boot x86: i8042: Remove unused codes Remove unused CONFIG_USE_CPCIDVI wrapped codes. Signed-off-by: Bin Meng Acked-by: Simon Glass --- diff --git a/drivers/input/i8042.c b/drivers/input/i8042.c index 1769c5e80b..87220cad35 100644 --- a/drivers/input/i8042.c +++ b/drivers/input/i8042.c @@ -10,16 +10,6 @@ /* includes */ #include -#include - -#ifdef CONFIG_USE_CPCIDVI -extern u8 gt_cpcidvi_in8(u32 offset); -extern void gt_cpcidvi_out8(u32 offset, u8 data); - -#define in8(a) gt_cpcidvi_in8(a) -#define out8(a, b) gt_cpcidvi_out8(a, b) -#endif - #include /* defines */ @@ -365,13 +355,6 @@ int i8042_kbd_init(void) if (!kbd_controller_present() || board_i8042_skip()) return -1; -#ifdef CONFIG_USE_CPCIDVI - penv = getenv("console"); - if (penv != NULL) { - if (strncmp(penv, "serial", 7) == 0) - return -1; - } -#endif /* Init keyboard device (default US layout) */ keymap = KBD_US; penv = getenv("keymap");