diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2011-07-20 13:09:46 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-07-20 13:09:46 -0400 |
commit | cf2e9c7b48f1e6c715e30952e5a3a5ef5cd0f8e4 (patch) | |
tree | 8e485f710138a330a56285b2a17d7debadf81c9b /drivers/tty | |
parent | b5930b83c2791bd3b2da120f98f844f96fb2ca50 (diff) | |
parent | e48055999575750158108b4cfc7fc22e4c972efc (diff) |
Merge branch 'next-samsung-clkdev-fix' into next-samsung-cleanup
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/s3c2410.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/s3c2412.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/s3c2440.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/s3c6400.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/s5pv210.c | 7 | ||||
-rw-r--r-- | drivers/tty/serial/samsung.c | 9 | ||||
-rw-r--r-- | drivers/tty/serial/samsung.h | 19 |
7 files changed, 4 insertions, 39 deletions
diff --git a/drivers/tty/serial/s3c2410.c b/drivers/tty/serial/s3c2410.c index bffe6ff9b158..b1d7e7c1849d 100644 --- a/drivers/tty/serial/s3c2410.c +++ b/drivers/tty/serial/s3c2410.c | |||
@@ -96,8 +96,6 @@ static struct platform_driver s3c2410_serial_driver = { | |||
96 | }, | 96 | }, |
97 | }; | 97 | }; |
98 | 98 | ||
99 | s3c24xx_console_init(&s3c2410_serial_driver, &s3c2410_uart_inf); | ||
100 | |||
101 | static int __init s3c2410_serial_init(void) | 99 | static int __init s3c2410_serial_init(void) |
102 | { | 100 | { |
103 | return s3c24xx_serial_init(&s3c2410_serial_driver, &s3c2410_uart_inf); | 101 | return s3c24xx_serial_init(&s3c2410_serial_driver, &s3c2410_uart_inf); |
diff --git a/drivers/tty/serial/s3c2412.c b/drivers/tty/serial/s3c2412.c index 7e2b9504a687..2234bf9ced45 100644 --- a/drivers/tty/serial/s3c2412.c +++ b/drivers/tty/serial/s3c2412.c | |||
@@ -130,8 +130,6 @@ static struct platform_driver s3c2412_serial_driver = { | |||
130 | }, | 130 | }, |
131 | }; | 131 | }; |
132 | 132 | ||
133 | s3c24xx_console_init(&s3c2412_serial_driver, &s3c2412_uart_inf); | ||
134 | |||
135 | static inline int s3c2412_serial_init(void) | 133 | static inline int s3c2412_serial_init(void) |
136 | { | 134 | { |
137 | return s3c24xx_serial_init(&s3c2412_serial_driver, &s3c2412_uart_inf); | 135 | return s3c24xx_serial_init(&s3c2412_serial_driver, &s3c2412_uart_inf); |
diff --git a/drivers/tty/serial/s3c2440.c b/drivers/tty/serial/s3c2440.c index 9e10d415d5fd..1d0c324b813f 100644 --- a/drivers/tty/serial/s3c2440.c +++ b/drivers/tty/serial/s3c2440.c | |||
@@ -159,8 +159,6 @@ static struct platform_driver s3c2440_serial_driver = { | |||
159 | }, | 159 | }, |
160 | }; | 160 | }; |
161 | 161 | ||
162 | s3c24xx_console_init(&s3c2440_serial_driver, &s3c2440_uart_inf); | ||
163 | |||
164 | static int __init s3c2440_serial_init(void) | 162 | static int __init s3c2440_serial_init(void) |
165 | { | 163 | { |
166 | return s3c24xx_serial_init(&s3c2440_serial_driver, &s3c2440_uart_inf); | 164 | return s3c24xx_serial_init(&s3c2440_serial_driver, &s3c2440_uart_inf); |
diff --git a/drivers/tty/serial/s3c6400.c b/drivers/tty/serial/s3c6400.c index ded26c42ff37..e2f6913d84d5 100644 --- a/drivers/tty/serial/s3c6400.c +++ b/drivers/tty/serial/s3c6400.c | |||
@@ -130,8 +130,6 @@ static struct platform_driver s3c6400_serial_driver = { | |||
130 | }, | 130 | }, |
131 | }; | 131 | }; |
132 | 132 | ||
133 | s3c24xx_console_init(&s3c6400_serial_driver, &s3c6400_uart_inf); | ||
134 | |||
135 | static int __init s3c6400_serial_init(void) | 133 | static int __init s3c6400_serial_init(void) |
136 | { | 134 | { |
137 | return s3c24xx_serial_init(&s3c6400_serial_driver, &s3c6400_uart_inf); | 135 | return s3c24xx_serial_init(&s3c6400_serial_driver, &s3c6400_uart_inf); |
diff --git a/drivers/tty/serial/s5pv210.c b/drivers/tty/serial/s5pv210.c index dd194dc80ee9..8dd160c96e87 100644 --- a/drivers/tty/serial/s5pv210.c +++ b/drivers/tty/serial/s5pv210.c | |||
@@ -135,13 +135,6 @@ static struct platform_driver s5p_serial_driver = { | |||
135 | }, | 135 | }, |
136 | }; | 136 | }; |
137 | 137 | ||
138 | static int __init s5pv210_serial_console_init(void) | ||
139 | { | ||
140 | return s3c24xx_serial_initconsole(&s5p_serial_driver, s5p_uart_inf); | ||
141 | } | ||
142 | |||
143 | console_initcall(s5pv210_serial_console_init); | ||
144 | |||
145 | static int __init s5p_serial_init(void) | 138 | static int __init s5p_serial_init(void) |
146 | { | 139 | { |
147 | return s3c24xx_serial_init(&s5p_serial_driver, *s5p_uart_inf); | 140 | return s3c24xx_serial_init(&s5p_serial_driver, *s5p_uart_inf); |
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index f66f64829303..7ead42104c67 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c | |||
@@ -1416,10 +1416,8 @@ s3c24xx_serial_console_setup(struct console *co, char *options) | |||
1416 | 1416 | ||
1417 | /* is the port configured? */ | 1417 | /* is the port configured? */ |
1418 | 1418 | ||
1419 | if (port->mapbase == 0x0) { | 1419 | if (port->mapbase == 0x0) |
1420 | co->index = 0; | 1420 | return -ENODEV; |
1421 | port = &s3c24xx_serial_ports[co->index].port; | ||
1422 | } | ||
1423 | 1421 | ||
1424 | cons_uart = port; | 1422 | cons_uart = port; |
1425 | 1423 | ||
@@ -1451,7 +1449,8 @@ static struct console s3c24xx_serial_console = { | |||
1451 | .flags = CON_PRINTBUFFER, | 1449 | .flags = CON_PRINTBUFFER, |
1452 | .index = -1, | 1450 | .index = -1, |
1453 | .write = s3c24xx_serial_console_write, | 1451 | .write = s3c24xx_serial_console_write, |
1454 | .setup = s3c24xx_serial_console_setup | 1452 | .setup = s3c24xx_serial_console_setup, |
1453 | .data = &s3c24xx_uart_drv, | ||
1455 | }; | 1454 | }; |
1456 | 1455 | ||
1457 | int s3c24xx_serial_initconsole(struct platform_driver *drv, | 1456 | int s3c24xx_serial_initconsole(struct platform_driver *drv, |
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 *); |