diff options
author | Thomas Abraham <thomas.ab@samsung.com> | 2011-06-14 06:12:26 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-07-20 06:10:43 -0400 |
commit | 5822a5df5ee2bbb2a98a4baadf065829e191395f (patch) | |
tree | 1b03ec068a72badee89f78cec25a0bf25600e523 /drivers/tty/serial/samsung.h | |
parent | ee430f16251de889ddf8e303970713d9fba9a3f5 (diff) |
serial: Remove redundant console_initcall from s3c and s5p console drivers
Uart port is registered as a console during the driver's probe.
So explict registration of console with console_initcall is
removed.
Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
[kgene.kim@samsung.com: removed changes of s3c2400 and s3c24a0]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers/tty/serial/samsung.h')
-rw-r--r-- | drivers/tty/serial/samsung.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/tty/serial/samsung.h b/drivers/tty/serial/samsung.h index 5b098cd76040..a69d9a54be94 100644 --- a/drivers/tty/serial/samsung.h +++ b/drivers/tty/serial/samsung.h | |||
@@ -79,25 +79,6 @@ extern int s3c24xx_serial_initconsole(struct platform_driver *drv, | |||
79 | extern int s3c24xx_serial_init(struct platform_driver *drv, | 79 | extern int s3c24xx_serial_init(struct platform_driver *drv, |
80 | struct s3c24xx_uart_info *info); | 80 | struct s3c24xx_uart_info *info); |
81 | 81 | ||
82 | #ifdef CONFIG_SERIAL_SAMSUNG_CONSOLE | ||
83 | |||
84 | #define s3c24xx_console_init(__drv, __inf) \ | ||
85 | static int __init s3c_serial_console_init(void) \ | ||
86 | { \ | ||
87 | struct s3c24xx_uart_info *uinfo[CONFIG_SERIAL_SAMSUNG_UARTS]; \ | ||
88 | int i; \ | ||
89 | \ | ||
90 | for (i = 0; i < CONFIG_SERIAL_SAMSUNG_UARTS; i++) \ | ||
91 | uinfo[i] = __inf; \ | ||
92 | return s3c24xx_serial_initconsole(__drv, uinfo); \ | ||
93 | } \ | ||
94 | \ | ||
95 | console_initcall(s3c_serial_console_init) | ||
96 | |||
97 | #else | ||
98 | #define s3c24xx_console_init(drv, inf) extern void no_console(void) | ||
99 | #endif | ||
100 | |||
101 | #ifdef CONFIG_SERIAL_SAMSUNG_DEBUG | 82 | #ifdef CONFIG_SERIAL_SAMSUNG_DEBUG |
102 | 83 | ||
103 | extern void printascii(const char *); | 84 | extern void printascii(const char *); |