]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial: arm_dcc: Remove stdio structure support
authorJagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>
Sat, 3 Aug 2013 19:52:24 +0000 (01:22 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 13 Aug 2013 06:38:29 +0000 (08:38 +0200)
Removed stdio structure ops support on arm_dcc
driver, and need to register with serial core
so-that it can access like remianing serial drivers.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
common/stdio.c
drivers/serial/arm_dcc.c
include/stdio_dev.h

index 721e9a144495a4c37a62d70e457da5d9a6b544f7..844f98c1844bf046b597e981cf7f860c521ee767 100644 (file)
@@ -196,9 +196,6 @@ int stdio_init (void)
        /* Initialize the list */
        INIT_LIST_HEAD(&(devs.list));
 
-#ifdef CONFIG_ARM_DCC
-       drv_arm_dcc_init ();
-#endif
 #ifdef CONFIG_SYS_I2C
        i2c_init_all();
 #else
index c217c88e59aec10c47bb547520d5eb7a1e61906c..e76c0382d8d39e8db43d602c203b59a2dbfe931a 100644 (file)
@@ -27,7 +27,6 @@
  */
 
 #include <common.h>
-#include <stdio_dev.h>
 
 #if defined(CONFIG_CPU_V6)
 /*
@@ -138,21 +137,6 @@ int arm_dcc_tstc(void)
        return reg;
 }
 
-static struct stdio_dev arm_dcc_dev;
-
-int drv_arm_dcc_init(void)
-{
-       strcpy(arm_dcc_dev.name, "dcc");
-       arm_dcc_dev.ext = 0;    /* No extensions */
-       arm_dcc_dev.flags = DEV_FLAGS_INPUT | DEV_FLAGS_OUTPUT;
-       arm_dcc_dev.tstc = arm_dcc_tstc;        /* 'tstc' function */
-       arm_dcc_dev.getc = arm_dcc_getc;        /* 'getc' function */
-       arm_dcc_dev.putc = arm_dcc_putc;        /* 'putc' function */
-       arm_dcc_dev.puts = arm_dcc_puts;        /* 'puts' function */
-
-       return stdio_register(&arm_dcc_dev);
-}
-
 __weak struct serial_device *default_serial_console(void)
 {
        return NULL;
index d0b5593e5bd6e625172323d40729d01a93db6376..e6dc12ac3984b578be2601a09efd6c1bce5febe3 100644 (file)
@@ -83,9 +83,6 @@ struct list_head* stdio_get_list(void);
 struct stdio_dev* stdio_get_by_name(const char* name);
 struct stdio_dev* stdio_clone(struct stdio_dev *dev);
 
-#ifdef CONFIG_ARM_DCC
-int drv_arm_dcc_init(void);
-#endif
 #ifdef CONFIG_LCD
 int    drv_lcd_init (void);
 #endif