summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-09-12 12:59:42 +0200
committerTom Rini <trini@ti.com>2012-10-15 11:53:48 -0700
commit4808f106d2af3682f3ee8ad7c6a36d73cfb7a80e (patch)
tree7fdee437a92a1a5ee3d57fe2358e58a153f33529
parentce6971cdd81b8c16aad2cceaf1cd923a34cd096a (diff)
downloadu-boot-imx-4808f106d2af3682f3ee8ad7c6a36d73cfb7a80e.zip
u-boot-imx-4808f106d2af3682f3ee8ad7c6a36d73cfb7a80e.tar.gz
u-boot-imx-4808f106d2af3682f3ee8ad7c6a36d73cfb7a80e.tar.bz2
serial: pxa: Make local functions static
Make functions that are local-only static, so no hairy symbols stick out of the serial_pxa driver file. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com>
-rw-r--r--drivers/serial/serial_pxa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/serial/serial_pxa.c b/drivers/serial/serial_pxa.c
index ad2d77e..bd3b3cf 100644
--- a/drivers/serial/serial_pxa.c
+++ b/drivers/serial/serial_pxa.c
@@ -87,7 +87,7 @@ DECLARE_GLOBAL_DATA_PTR;
#endif
#endif
-uint32_t pxa_uart_get_baud_divider(void)
+static uint32_t pxa_uart_get_baud_divider(void)
{
if (gd->baudrate == 1200)
return 768;
@@ -105,7 +105,7 @@ uint32_t pxa_uart_get_baud_divider(void)
return 0;
}
-struct pxa_uart_regs *pxa_uart_index_to_regs(uint32_t uart_index)
+static struct pxa_uart_regs *pxa_uart_index_to_regs(uint32_t uart_index)
{
switch (uart_index) {
case FFUART_INDEX: return (struct pxa_uart_regs *)FFUART_BASE;
@@ -117,7 +117,7 @@ struct pxa_uart_regs *pxa_uart_index_to_regs(uint32_t uart_index)
}
}
-void pxa_uart_toggle_clock(uint32_t uart_index, int enable)
+static void pxa_uart_toggle_clock(uint32_t uart_index, int enable)
{
uint32_t clk_reg, clk_offset, reg;