Commit da28439b authored by Michal Orzel's avatar Michal Orzel Committed by Stefano Stabellini

drivers/exynos4210: Remove unused-but-set variable

Function exynos4210_uart_init_preirq defines and sets a variable
divisor but does not make use of it. Remove the definition and comment
out the assignment as this function already has some TODOs.
Signed-off-by: default avatarMichal Orzel <michal.orzel@arm.com>
Acked-by: default avatarJulien Grall <jgrall@amazon.com>
Acked-by: default avatarStefano Stabellini <sstabellini@kernel.org>
parent 1f71c11b
......@@ -101,7 +101,6 @@ static void exynos4210_uart_interrupt(int irq, void *data, struct cpu_user_regs
static void __init exynos4210_uart_init_preirq(struct serial_port *port)
{
struct exynos4210_uart *uart = port->uart;
unsigned int divisor;
uint32_t ulcon;
/* reset, TX/RX disables */
......@@ -113,9 +112,12 @@ static void __init exynos4210_uart_init_preirq(struct serial_port *port)
/* Line control and baud-rate generator. */
if ( uart->baud != BAUD_AUTO )
{
/* Baud rate specified: program it into the divisor latch. */
divisor = ((uart->clock_hz) / (uart->baud)) - 1;
/* FIXME: will use a hacked divisor, assuming the src clock and bauds */
/*
* TODO: should be updated
* Baud rate specified: program it into the divisor latch.
* divisor = ((uart->clock_hz) / (uart->baud)) - 1;
* FIXME: will use a hacked divisor, assuming the src clock and bauds.
*/
exynos4210_write(uart, UFRACVAL, 53);
exynos4210_write(uart, UBRDIV, 4);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment