aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/serial.c
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2014-12-02 17:08:40 -0500
committerSekhar Nori <nsekhar@ti.com>2015-01-14 05:26:12 -0500
commit6e4b4dd539a2cf9e278112cce7475bb85f772aa2 (patch)
tree26fb901b02b2cc15d6e8ae1d96d1687aba1c59d7 /arch/arm/mach-davinci/serial.c
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
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>
Diffstat (limited to 'arch/arm/mach-davinci/serial.c')
-rw-r--r--arch/arm/mach-davinci/serial.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mach-davinci/serial.c b/arch/arm/mach-davinci/serial.c
index 5e93a734c858..951b620bfa73 100644
--- a/arch/arm/mach-davinci/serial.c
+++ b/arch/arm/mach-davinci/serial.c
@@ -31,16 +31,6 @@
31#include <mach/serial.h> 31#include <mach/serial.h>
32#include <mach/cputype.h> 32#include <mach/cputype.h>
33 33
34static inline unsigned int serial_read_reg(struct plat_serial8250_port *up,
35 int offset)
36{
37 offset <<= up->regshift;
38
39 WARN_ONCE(!up->membase, "unmapped read: uart[%d]\n", offset);
40
41 return (unsigned int)__raw_readl(up->membase + offset);
42}
43
44static inline void serial_write_reg(struct plat_serial8250_port *p, int offset, 34static inline void serial_write_reg(struct plat_serial8250_port *p, int offset,
45 int value) 35 int value)
46{ 36{