From 40ac8c757b76127c7b204488de24e81cddaa3f5d Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Sun, 1 Aug 2010 20:05:38 -0700 Subject: serial: tegra_hsuart: Fix void return type on writel accessors Signed-off-by: Colin Cross --- drivers/serial/tegra_hsuart.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers') diff --git a/drivers/serial/tegra_hsuart.c b/drivers/serial/tegra_hsuart.c index 1ed206fb4c76..2433a8555270 100644 --- a/drivers/serial/tegra_hsuart.c +++ b/drivers/serial/tegra_hsuart.c @@ -117,20 +117,20 @@ static inline u8 uart_readb(struct tegra_uart_port *t, unsigned long reg) return val; } -static inline u8 uart_writeb(struct tegra_uart_port *t, u8 val, +static inline void uart_writeb(struct tegra_uart_port *t, u8 val, unsigned long reg) { dev_vdbg(t->uport.dev, "%s: %p %03lx %02x\n", __func__, t->uport.membase, reg << t->uport.regshift, val); - return writeb(val, t->uport.membase + (reg << t->uport.regshift)); + writeb(val, t->uport.membase + (reg << t->uport.regshift)); } -static inline u8 uart_writel(struct tegra_uart_port *t, u32 val, +static inline void uart_writel(struct tegra_uart_port *t, u32 val, unsigned long reg) { dev_vdbg(t->uport.dev, "%s: %p %03lx %08x\n", __func__, t->uport.membase, reg << t->uport.regshift, val); - return writel(val, t->uport.membase + (reg << t->uport.regshift)); + writel(val, t->uport.membase + (reg << t->uport.regshift)); } static void tegra_set_baudrate(struct tegra_uart_port *t, unsigned int baud); -- cgit v1.2.3