Commit 6e4b4dd5 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Sekhar Nori

ARM: davinci: serial.c: remove unused serial_read_reg()

Remove function serial_read_reg() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
parent 97bf6af1
......@@ -31,16 +31,6 @@
#include <mach/serial.h>
#include <mach/cputype.h>
static inline unsigned int serial_read_reg(struct plat_serial8250_port *up,
int offset)
{
offset <<= up->regshift;
WARN_ONCE(!up->membase, "unmapped read: uart[%d]\n", offset);
return (unsigned int)__raw_readl(up->membase + offset);
}
static inline void serial_write_reg(struct plat_serial8250_port *p, int offset,
int value)
{
......
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