]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Blackfin: uart: move debug buffers into local bss
authorMike Frysinger <vapier@gentoo.org>
Sat, 30 Apr 2011 03:10:54 +0000 (23:10 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 12 Jul 2011 06:17:45 +0000 (02:17 -0400)
There's no need for these saved buffers to be global symbols, or in
the data section.  So mark them static to move them into the bss.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/cpu/serial.c

index 650202e24f907eb06400ed08fe92499d6bcb4ff9..b15c945cb582b785535721a1e4817c22956ecca6 100644 (file)
@@ -49,9 +49,9 @@ DECLARE_GLOBAL_DATA_PTR;
 #include "serial.h"
 
 #ifdef CONFIG_DEBUG_SERIAL
-uint16_t cached_lsr[256];
-uint16_t cached_rbr[256];
-size_t cache_count;
+static uint16_t cached_lsr[256];
+static uint16_t cached_rbr[256];
+static size_t cache_count;
 
 /* The LSR is read-to-clear on some parts, so we have to make sure status
  * bits aren't inadvertently lost when doing various tests.  This also
@@ -112,11 +112,6 @@ int serial_init(void)
        serial_initialize();
        serial_setbrg();
        uart_lsr_clear();
-#ifdef CONFIG_DEBUG_SERIAL
-       cache_count = 0;
-       memset(cached_lsr, 0x00, sizeof(cached_lsr));
-       memset(cached_rbr, 0x00, sizeof(cached_rbr));
-#endif
        return 0;
 }