diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2007-07-17 07:05:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:11 -0400 |
commit | b7269dd2b97b9aedb64e15fdec5575345d091925 (patch) | |
tree | 4e6776192ef784a19f9b29411ba3236a8f57cc49 /drivers/char | |
parent | cfafca8067c6defbaeb28cb898b7b3f8abdfe20d (diff) |
vt: add comment for unbind_con_driver()
- add comment for unbind_con_driver().
- bind_con_driver() is made private again
Signed-off-by: Jesse Barnes <jesse.barnes@intel.com>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/vt.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index 8a389b314624..45b33cf97643 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c | |||
@@ -2869,7 +2869,8 @@ int __init vty_init(void) | |||
2869 | 2869 | ||
2870 | static struct class *vtconsole_class; | 2870 | static struct class *vtconsole_class; |
2871 | 2871 | ||
2872 | int bind_con_driver(const struct consw *csw, int first, int last, int deflt) | 2872 | static int bind_con_driver(const struct consw *csw, int first, int last, |
2873 | int deflt) | ||
2873 | { | 2874 | { |
2874 | struct module *owner = csw->owner; | 2875 | struct module *owner = csw->owner; |
2875 | const char *desc = NULL; | 2876 | const char *desc = NULL; |
@@ -2968,7 +2969,6 @@ err: | |||
2968 | module_put(owner); | 2969 | module_put(owner); |
2969 | return retval; | 2970 | return retval; |
2970 | }; | 2971 | }; |
2971 | EXPORT_SYMBOL(bind_con_driver); | ||
2972 | 2972 | ||
2973 | #ifdef CONFIG_VT_HW_CONSOLE_BINDING | 2973 | #ifdef CONFIG_VT_HW_CONSOLE_BINDING |
2974 | static int con_is_graphics(const struct consw *csw, int first, int last) | 2974 | static int con_is_graphics(const struct consw *csw, int first, int last) |
@@ -2987,6 +2987,23 @@ static int con_is_graphics(const struct consw *csw, int first, int last) | |||
2987 | return retval; | 2987 | return retval; |
2988 | } | 2988 | } |
2989 | 2989 | ||
2990 | /** | ||
2991 | * unbind_con_driver - unbind a console driver | ||
2992 | * @csw: pointer to console driver to unregister | ||
2993 | * @first: first in range of consoles that @csw should be unbound from | ||
2994 | * @last: last in range of consoles that @csw should be unbound from | ||
2995 | * @deflt: should next bound console driver be default after @csw is unbound? | ||
2996 | * | ||
2997 | * To unbind a driver from all possible consoles, pass 0 as @first and | ||
2998 | * %MAX_NR_CONSOLES as @last. | ||
2999 | * | ||
3000 | * @deflt controls whether the console that ends up replacing @csw should be | ||
3001 | * the default console. | ||
3002 | * | ||
3003 | * RETURNS: | ||
3004 | * -ENODEV if @csw isn't a registered console driver or can't be unregistered | ||
3005 | * or 0 on success. | ||
3006 | */ | ||
2990 | int unbind_con_driver(const struct consw *csw, int first, int last, int deflt) | 3007 | int unbind_con_driver(const struct consw *csw, int first, int last, int deflt) |
2991 | { | 3008 | { |
2992 | struct module *owner = csw->owner; | 3009 | struct module *owner = csw->owner; |