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 /drivers/usb | |
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 'drivers/usb')
-rw-r--r-- | drivers/usb/misc/sisusbvga/sisusb_con.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/usb/misc/sisusbvga/sisusb_con.c b/drivers/usb/misc/sisusbvga/sisusb_con.c index 411e605f448a..a638c4e9a947 100644 --- a/drivers/usb/misc/sisusbvga/sisusb_con.c +++ b/drivers/usb/misc/sisusbvga/sisusb_con.c | |||
@@ -208,7 +208,7 @@ sisusbcon_init(struct vc_data *c, int init) | |||
208 | struct sisusb_usb_data *sisusb; | 208 | struct sisusb_usb_data *sisusb; |
209 | int cols, rows; | 209 | int cols, rows; |
210 | 210 | ||
211 | /* This is called by take_over_console(), | 211 | /* This is called by do_take_over_console(), |
212 | * ie by us/under our control. It is | 212 | * ie by us/under our control. It is |
213 | * only called after text mode and fonts | 213 | * only called after text mode and fonts |
214 | * are set up/restored. | 214 | * are set up/restored. |
@@ -273,7 +273,7 @@ sisusbcon_deinit(struct vc_data *c) | |||
273 | struct sisusb_usb_data *sisusb; | 273 | struct sisusb_usb_data *sisusb; |
274 | int i; | 274 | int i; |
275 | 275 | ||
276 | /* This is called by take_over_console() | 276 | /* This is called by do_take_over_console() |
277 | * and others, ie not under our control. | 277 | * and others, ie not under our control. |
278 | */ | 278 | */ |
279 | 279 | ||
@@ -1490,8 +1490,9 @@ sisusb_console_init(struct sisusb_usb_data *sisusb, int first, int last) | |||
1490 | mutex_unlock(&sisusb->lock); | 1490 | mutex_unlock(&sisusb->lock); |
1491 | 1491 | ||
1492 | /* Now grab the desired console(s) */ | 1492 | /* Now grab the desired console(s) */ |
1493 | ret = take_over_console(&sisusb_con, first - 1, last - 1, 0); | 1493 | console_lock(); |
1494 | 1494 | ret = do_take_over_console(&sisusb_con, first - 1, last - 1, 0); | |
1495 | console_unlock(); | ||
1495 | if (!ret) | 1496 | if (!ret) |
1496 | sisusb->haveconsole = 1; | 1497 | sisusb->haveconsole = 1; |
1497 | else { | 1498 | else { |
@@ -1535,11 +1536,14 @@ sisusb_console_exit(struct sisusb_usb_data *sisusb) | |||
1535 | 1536 | ||
1536 | if (sisusb->haveconsole) { | 1537 | if (sisusb->haveconsole) { |
1537 | for (i = 0; i < MAX_NR_CONSOLES; i++) | 1538 | for (i = 0; i < MAX_NR_CONSOLES; i++) |
1538 | if (sisusb->havethisconsole[i]) | 1539 | if (sisusb->havethisconsole[i]) { |
1539 | take_over_console(&sisusb_dummy_con, i, i, 0); | 1540 | console_lock(); |
1541 | do_take_over_console(&sisusb_dummy_con, i, i, 0); | ||
1542 | console_unlock(); | ||
1540 | /* At this point, con_deinit for all our | 1543 | /* At this point, con_deinit for all our |
1541 | * consoles is executed by take_over_console(). | 1544 | * consoles is executed by do_take_over_console(). |
1542 | */ | 1545 | */ |
1546 | } | ||
1543 | sisusb->haveconsole = 0; | 1547 | sisusb->haveconsole = 0; |
1544 | } | 1548 | } |
1545 | 1549 | ||