drivers/char/hvc_console.c: cleanups
PATCH 1/1 drivers/char/hvc_console.c: cleanups
This patch contains the following cleanups:
- make needlessly global code static
- remove the unused EXPORT_SYMBOL's
Signed-off-by Adrian Bunk <[email protected]>
---
drivers/char/hvc_console.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
drivers/char/hvc_console.c renamed from drivers/char/hvc_console.c.old +5 -7
@@ -117,7 +117,7 @@* lock held. If successful, this function increments the kobject reference * count against the target hvc_struct so it should be released when finished. */ -struct hvc_struct *hvc_get_by_index (int index) +static struct hvc_struct *hvc_get_by_index (int index) {struct hvc_struct *hp;unsigned long flags;
@@ -156,7 +156,8 @@* hvc_console_setup() finds adapters. */ -void hvc_console_print (struct console *co,const char *b,unsigned count) +static void hvc_console_print (struct console *co,const char *b, +unsigned count) { char c[N_OUTBUF] __ALIGNED__;unsigned i =0 , n =0 ;
@@ -214,7 +215,7 @@return 0 ; } -struct console hvc_con_driver = { +static struct console hvc_con_driver = { .name ="hvc" , .write = hvc_console_print, .device = hvc_console_device,
@@ -284,7 +285,6 @@return 0 ; } -EXPORT_SYMBOL (hvc_instantiate);/* Wake the sleeping khvcd */ static void hvc_kick (void )
@@ -777,7 +777,6 @@return hp; } -EXPORT_SYMBOL (hvc_alloc); int __devexit hvc_remove(struct hvc_struct *hp) {
@@ -813,11 +812,10 @@tty_hangup (tty);return 0 ; } -EXPORT_SYMBOL (hvc_remove);/* Driver initialization. Follow console initialization. This is where the TTY * interfaces start to become available. */ -int __init hvc_init (void ) +static int __init hvc_init (void ) {struct tty_driver *drv;
Quoted 6 lines · On Tue, 20 Feb 2007 01:02:07 +0100 Adrian Bunk <[email protected]> wrote:
This patch contains the following cleanups:
- make needlessly global code static
- remove the unused EXPORT_SYMBOL'sSigned-off-by Adrian Bunk <[email protected]>
Acked-by Stephen Rothwell <[email protected]>
--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/