From: Rickard Strandqvist Date: Tue, 2 Dec 2014 22:08:40 +0000 (+0100) Subject: ARM: davinci: serial.c: remove unused serial_read_reg() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6e4b4dd539a2cf9e278112cce7475bb85f772aa2;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Sekhar Nori --- 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 @@ #include #include -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) {