]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: i8042: Remove unused codes
authorBin Meng <bmeng.cn@gmail.com>
Mon, 24 Aug 2015 08:00:03 +0000 (01:00 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:47 +0000 (11:29 +0200)
Remove unused CONFIG_USE_CPCIDVI wrapped codes.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/input/i8042.c

index 1769c5e80b215ea08e45676e550e83a174c736a1..87220cad356c3d1ddb93a85e89a0a123c579da0c 100644 (file)
 /* includes */
 
 #include <common.h>
-#include <linux/compiler.h>
-
-#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 <i8042.h>
 
 /* 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");