summaryrefslogtreecommitdiffstats
path: root/drivers/serial/serial_s3c.c
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2012-07-20 21:29:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-07-25 09:27:38 +0200
commit4b2dfa8188f7a1563ce203a79539a3873a3ab477 (patch)
treed6a949d35567c20ab14c4b80fb4483922369b535 /drivers/serial/serial_s3c.c
parent78d124b9679eeae0ff7e65793655635bf7fe9970 (diff)
downloadbarebox-4b2dfa8188f7a1563ce203a79539a3873a3ab477.tar.gz
barebox-4b2dfa8188f7a1563ce203a79539a3873a3ab477.tar.xz
Samsung/serial: there is no need to ifdef the slot table
The '__maybe_unused' attribute prevents the compiler from warning about an unused variable and the 'static' will remove it entirely if it's not used. This patch is only cosmetic. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial/serial_s3c.c')
-rw-r--r--drivers/serial/serial_s3c.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/serial/serial_s3c.c b/drivers/serial/serial_s3c.c
index 3565edf550..2cb2eef33c 100644
--- a/drivers/serial/serial_s3c.c
+++ b/drivers/serial/serial_s3c.c
@@ -63,7 +63,6 @@ static unsigned s3c_get_arch_uart_input_clock(void __iomem *base)
return s3c_get_uart_clk(UCON_GET_CLK_SRC(reg));
}
-#ifdef S3C_UART_HAS_UBRDIVSLOT
/*
* This table takes the fractional value of the baud divisor and gives
* the recommended setting for the UDIVSLOT register. Refer the datasheet
@@ -73,7 +72,6 @@ static const uint16_t udivslot_table[] __maybe_unused = {
0x0000, 0x0080, 0x0808, 0x0888, 0x2222, 0x4924, 0x4A52, 0x54AA,
0x5555, 0xD555, 0xD5D5, 0xDDD5, 0xDDDD, 0xDFDD, 0xDFDF, 0xFFDF,
};
-#endif
static int s3c_serial_setbaudrate(struct console_device *cdev, int baudrate)
{