diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/hvc_console.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c index 0f9ed7b46a6d..322bc5f7d86b 100644 --- a/drivers/char/hvc_console.c +++ b/drivers/char/hvc_console.c | |||
@@ -111,7 +111,7 @@ static int last_hvc = -1; | |||
111 | * lock held. If successful, this function increments the kobject reference | 111 | * lock held. If successful, this function increments the kobject reference |
112 | * count against the target hvc_struct so it should be released when finished. | 112 | * count against the target hvc_struct so it should be released when finished. |
113 | */ | 113 | */ |
114 | struct hvc_struct *hvc_get_by_index(int index) | 114 | static struct hvc_struct *hvc_get_by_index(int index) |
115 | { | 115 | { |
116 | struct hvc_struct *hp; | 116 | struct hvc_struct *hp; |
117 | unsigned long flags; | 117 | unsigned long flags; |
@@ -150,7 +150,8 @@ static uint32_t vtermnos[MAX_NR_HVC_CONSOLES] = | |||
150 | * hvc_console_setup() finds adapters. | 150 | * hvc_console_setup() finds adapters. |
151 | */ | 151 | */ |
152 | 152 | ||
153 | void hvc_console_print(struct console *co, const char *b, unsigned count) | 153 | static void hvc_console_print(struct console *co, const char *b, |
154 | unsigned count) | ||
154 | { | 155 | { |
155 | char c[N_OUTBUF] __ALIGNED__; | 156 | char c[N_OUTBUF] __ALIGNED__; |
156 | unsigned i = 0, n = 0; | 157 | unsigned i = 0, n = 0; |
@@ -208,7 +209,7 @@ static int __init hvc_console_setup(struct console *co, char *options) | |||
208 | return 0; | 209 | return 0; |
209 | } | 210 | } |
210 | 211 | ||
211 | struct console hvc_con_driver = { | 212 | static struct console hvc_con_driver = { |
212 | .name = "hvc", | 213 | .name = "hvc", |
213 | .write = hvc_console_print, | 214 | .write = hvc_console_print, |
214 | .device = hvc_console_device, | 215 | .device = hvc_console_device, |
@@ -278,7 +279,6 @@ int hvc_instantiate(uint32_t vtermno, int index, struct hv_ops *ops) | |||
278 | 279 | ||
279 | return 0; | 280 | return 0; |
280 | } | 281 | } |
281 | EXPORT_SYMBOL(hvc_instantiate); | ||
282 | 282 | ||
283 | /* Wake the sleeping khvcd */ | 283 | /* Wake the sleeping khvcd */ |
284 | static void hvc_kick(void) | 284 | static void hvc_kick(void) |
@@ -792,7 +792,6 @@ struct hvc_struct __devinit *hvc_alloc(uint32_t vtermno, int irq, | |||
792 | 792 | ||
793 | return hp; | 793 | return hp; |
794 | } | 794 | } |
795 | EXPORT_SYMBOL(hvc_alloc); | ||
796 | 795 | ||
797 | int __devexit hvc_remove(struct hvc_struct *hp) | 796 | int __devexit hvc_remove(struct hvc_struct *hp) |
798 | { | 797 | { |
@@ -828,11 +827,10 @@ int __devexit hvc_remove(struct hvc_struct *hp) | |||
828 | tty_hangup(tty); | 827 | tty_hangup(tty); |
829 | return 0; | 828 | return 0; |
830 | } | 829 | } |
831 | EXPORT_SYMBOL(hvc_remove); | ||
832 | 830 | ||
833 | /* Driver initialization. Follow console initialization. This is where the TTY | 831 | /* Driver initialization. Follow console initialization. This is where the TTY |
834 | * interfaces start to become available. */ | 832 | * interfaces start to become available. */ |
835 | int __init hvc_init(void) | 833 | static int __init hvc_init(void) |
836 | { | 834 | { |
837 | struct tty_driver *drv; | 835 | struct tty_driver *drv; |
838 | 836 | ||