aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-08 04:39:51 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-12 14:10:16 -0400
commit6c62cc0db7d9f459c7453adc88a30ab6a626f15c (patch)
treeddb75be807b41bd14aba6642b52aa3ba67d31b26
parent331b37340af0ce96b6d6701b21b9902c85a8e2c0 (diff)
serial: pxa: Staticize local symbols
These local symbols are used only in this file. Fix the following sparse warnings: drivers/tty/serial/pxa.c:793:17: warning: symbol 'serial_pxa_pops' was not declared. Should it be static? drivers/tty/serial/pxa.c:971:12: warning: symbol 'serial_pxa_init' was not declared. Should it be static? drivers/tty/serial/pxa.c:986:13: warning: symbol 'serial_pxa_exit' was not declared. Should it be static? Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/pxa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/serial/pxa.c b/drivers/tty/serial/pxa.c
index 43da578d41f2..f9f20f383760 100644
--- a/drivers/tty/serial/pxa.c
+++ b/drivers/tty/serial/pxa.c
@@ -765,7 +765,7 @@ static struct console serial_pxa_console = {
765#define PXA_CONSOLE NULL 765#define PXA_CONSOLE NULL
766#endif 766#endif
767 767
768struct uart_ops serial_pxa_pops = { 768static struct uart_ops serial_pxa_pops = {
769 .tx_empty = serial_pxa_tx_empty, 769 .tx_empty = serial_pxa_tx_empty,
770 .set_mctrl = serial_pxa_set_mctrl, 770 .set_mctrl = serial_pxa_set_mctrl,
771 .get_mctrl = serial_pxa_get_mctrl, 771 .get_mctrl = serial_pxa_get_mctrl,
@@ -943,7 +943,7 @@ static struct platform_driver serial_pxa_driver = {
943 }, 943 },
944}; 944};
945 945
946int __init serial_pxa_init(void) 946static int __init serial_pxa_init(void)
947{ 947{
948 int ret; 948 int ret;
949 949
@@ -958,7 +958,7 @@ int __init serial_pxa_init(void)
958 return ret; 958 return ret;
959} 959}
960 960
961void __exit serial_pxa_exit(void) 961static void __exit serial_pxa_exit(void)
962{ 962{
963 platform_driver_unregister(&serial_pxa_driver); 963 platform_driver_unregister(&serial_pxa_driver);
964 uart_unregister_driver(&serial_pxa_reg); 964 uart_unregister_driver(&serial_pxa_reg);