diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-08 04:36:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 14:35:32 -0400 |
commit | 1053f4da626374ae5f4695a62e2814584c2bc2e2 (patch) | |
tree | c3654b97fffcf50f79a13dddd3c3c6a45048bbd6 | |
parent | 5a7daed81cd5ff6d4098b7f6342ba35988fcbb86 (diff) |
serial: ioc4_serial: Staticize ioc4_serial_attach_one()
ioc4_serial_attach_one() is used only in this file.
Also, ioc4_serial is not used; it can be removed.
Fix the following sparse warnings:
drivers/tty/serial/ioc4_serial.c:300:3: warning: symbol 'ioc4_serial' was not declared. Should it be static?
drivers/tty/serial/ioc4_serial.c:2771:1: warning: symbol 'ioc4_serial_attach_one' was not declared. Should it be static?
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Patrick Gefre <pfg@sgi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/ioc4_serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/ioc4_serial.c b/drivers/tty/serial/ioc4_serial.c index e2520abcb1c4..1274499850fc 100644 --- a/drivers/tty/serial/ioc4_serial.c +++ b/drivers/tty/serial/ioc4_serial.c | |||
@@ -297,7 +297,7 @@ struct ioc4_serial { | |||
297 | struct ioc4_uartregs uart_1; | 297 | struct ioc4_uartregs uart_1; |
298 | struct ioc4_uartregs uart_2; | 298 | struct ioc4_uartregs uart_2; |
299 | struct ioc4_uartregs uart_3; | 299 | struct ioc4_uartregs uart_3; |
300 | } ioc4_serial; | 300 | }; |
301 | 301 | ||
302 | /* UART clock speed */ | 302 | /* UART clock speed */ |
303 | #define IOC4_SER_XIN_CLK_66 66666667 | 303 | #define IOC4_SER_XIN_CLK_66 66666667 |
@@ -2767,7 +2767,7 @@ ioc4_serial_core_attach(struct pci_dev *pdev, int port_type) | |||
2767 | * called per card found from IOC4 master module. | 2767 | * called per card found from IOC4 master module. |
2768 | * @idd: Master module data for this IOC4 | 2768 | * @idd: Master module data for this IOC4 |
2769 | */ | 2769 | */ |
2770 | int | 2770 | static int |
2771 | ioc4_serial_attach_one(struct ioc4_driver_data *idd) | 2771 | ioc4_serial_attach_one(struct ioc4_driver_data *idd) |
2772 | { | 2772 | { |
2773 | unsigned long tmp_addr1; | 2773 | unsigned long tmp_addr1; |