diff options
author | Wang YanQing <udknight@gmail.com> | 2013-05-21 01:15:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-21 01:29:27 -0400 |
commit | 155957f56c3537dbb63bbb63c39067987c061a6d (patch) | |
tree | be1947621ca0a310f21fd24c33f28b3dc0aa9a5d /arch/alpha/kernel | |
parent | 4898e640caf03fdbaf2122d5a33949bf3e4a5b34 (diff) |
TTY:vt: convert remain take_over_console's users to do_take_over_console
Impact:
1:convert all remain take_over_console to do_take_over_console
2:update take_over_console to do_take_over_console in comment
Commit dc9641895abb ("vt: delete unneeded functions
register_con_driver|take_over_console") delete take_over_console,
but forget to convert remain take_over_console's users to new API
do_take_over_console, this patch fix it.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/alpha/kernel')
-rw-r--r-- | arch/alpha/kernel/console.c | 4 | ||||
-rw-r--r-- | arch/alpha/kernel/process.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/arch/alpha/kernel/console.c b/arch/alpha/kernel/console.c index da711e37fc97..6a61deed4a85 100644 --- a/arch/alpha/kernel/console.c +++ b/arch/alpha/kernel/console.c | |||
@@ -61,7 +61,9 @@ locate_and_init_vga(void *(*sel_func)(void *, void *)) | |||
61 | 61 | ||
62 | /* Set the VGA hose and init the new console. */ | 62 | /* Set the VGA hose and init the new console. */ |
63 | pci_vga_hose = hose; | 63 | pci_vga_hose = hose; |
64 | take_over_console(&vga_con, 0, MAX_NR_CONSOLES-1, 1); | 64 | console_lock(); |
65 | do_take_over_console(&vga_con, 0, MAX_NR_CONSOLES-1, 1); | ||
66 | console_unlock(); | ||
65 | } | 67 | } |
66 | 68 | ||
67 | void __init | 69 | void __init |
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c index ab80a80d38a2..f2360a74e5d5 100644 --- a/arch/alpha/kernel/process.c +++ b/arch/alpha/kernel/process.c | |||
@@ -117,7 +117,9 @@ common_shutdown_1(void *generic_ptr) | |||
117 | if (in_interrupt()) | 117 | if (in_interrupt()) |
118 | irq_exit(); | 118 | irq_exit(); |
119 | /* This has the effect of resetting the VGA video origin. */ | 119 | /* This has the effect of resetting the VGA video origin. */ |
120 | take_over_console(&dummy_con, 0, MAX_NR_CONSOLES-1, 1); | 120 | console_lock(); |
121 | do_take_over_console(&dummy_con, 0, MAX_NR_CONSOLES-1, 1); | ||
122 | console_unlock(); | ||
121 | #endif | 123 | #endif |
122 | pci_restore_srm_config(); | 124 | pci_restore_srm_config(); |
123 | set_hae(srm_hae); | 125 | set_hae(srm_hae); |