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/mips | |
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/mips')
-rw-r--r-- | arch/mips/pci/pci-bcm1480.c | 4 | ||||
-rw-r--r-- | arch/mips/pci/pci-sb1250.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/arch/mips/pci/pci-bcm1480.c b/arch/mips/pci/pci-bcm1480.c index e2e69e1e9fe1..44dd5aa2e36f 100644 --- a/arch/mips/pci/pci-bcm1480.c +++ b/arch/mips/pci/pci-bcm1480.c | |||
@@ -257,7 +257,9 @@ static int __init bcm1480_pcibios_init(void) | |||
257 | register_pci_controller(&bcm1480_controller); | 257 | register_pci_controller(&bcm1480_controller); |
258 | 258 | ||
259 | #ifdef CONFIG_VGA_CONSOLE | 259 | #ifdef CONFIG_VGA_CONSOLE |
260 | take_over_console(&vga_con, 0, MAX_NR_CONSOLES-1, 1); | 260 | console_lock(); |
261 | do_take_over_console(&vga_con, 0, MAX_NR_CONSOLES-1, 1); | ||
262 | console_unlock(); | ||
261 | #endif | 263 | #endif |
262 | return 0; | 264 | return 0; |
263 | } | 265 | } |
diff --git a/arch/mips/pci/pci-sb1250.c b/arch/mips/pci/pci-sb1250.c index cdefcc4cb8d4..fc634aeda4a5 100644 --- a/arch/mips/pci/pci-sb1250.c +++ b/arch/mips/pci/pci-sb1250.c | |||
@@ -283,7 +283,9 @@ static int __init sb1250_pcibios_init(void) | |||
283 | register_pci_controller(&sb1250_controller); | 283 | register_pci_controller(&sb1250_controller); |
284 | 284 | ||
285 | #ifdef CONFIG_VGA_CONSOLE | 285 | #ifdef CONFIG_VGA_CONSOLE |
286 | take_over_console(&vga_con, 0, MAX_NR_CONSOLES - 1, 1); | 286 | console_lock(); |
287 | do_take_over_console(&vga_con, 0, MAX_NR_CONSOLES - 1, 1); | ||
288 | console_unlock(); | ||
287 | #endif | 289 | #endif |
288 | return 0; | 290 | return 0; |
289 | } | 291 | } |