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: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
This commit is contained in:
parent
97bf6af1f9
commit
6e4b4dd539
|
@ -31,16 +31,6 @@
|
||||||
#include <mach/serial.h>
|
#include <mach/serial.h>
|
||||||
#include <mach/cputype.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,
|
static inline void serial_write_reg(struct plat_serial8250_port *p, int offset,
|
||||||
int value)
|
int value)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue