ARM: davinci: serial.c: remove unused serial_read_reg()
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Tue, 2 Dec 2014 22:08:40 +0000 (23:08 +0100)
committerSekhar Nori <nsekhar@ti.com>
Wed, 14 Jan 2015 10:26:12 +0000 (15:56 +0530)
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>
arch/arm/mach-davinci/serial.c

index 5e93a734c858624c83e7306957d54f1583274bd2..951b620bfa73e725d0858329b9f3b2e62aeaa3a1 100644 (file)
 #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)
 {