aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2005-07-07 20:56:24 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-07 21:23:39 -0400
commitd5ee257c3342185ba8ab642d125d192eb99ea8f2 (patch)
treeda6d95fc65a48c36032cdfbb768385f50f7fb5ba /arch
parent7805b1b29ffdd252dfef36aa28d7bda70cd586d3 (diff)
[PATCH] hvc_console: Separate hvc_console and vio code
Separate the console setup routines of the hvc_console and the vio layer. Remove the call to find_init_vty from hvc_console.c. Fail the setup routine if the console doesn't exist, but register the console again when the specified channel is instantiated. This scheme maintains the print buffer semantics while eliminating callout and call back for the console code. Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/ppc64/kernel/hvconsole.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/hvconsole.c b/arch/ppc64/kernel/hvconsole.c
index c72fb8ffe974..94fb06198ea2 100644
--- a/arch/ppc64/kernel/hvconsole.c
+++ b/arch/ppc64/kernel/hvconsole.c
@@ -93,7 +93,7 @@ EXPORT_SYMBOL(hvc_put_chars);
93 * We hope/assume that the first vty found corresponds to the first console 93 * We hope/assume that the first vty found corresponds to the first console
94 * device. 94 * device.
95 */ 95 */
96int hvc_find_vtys(void) 96static int hvc_find_vtys(void)
97{ 97{
98 struct device_node *vty; 98 struct device_node *vty;
99 int num_found = 0; 99 int num_found = 0;
@@ -119,3 +119,4 @@ int hvc_find_vtys(void)
119 119
120 return num_found; 120 return num_found;
121} 121}
122console_initcall(hvc_find_vtys);