Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

altera_uart: Fix missing prototype for registering an early console

Simply add an early_altera_uart_setup() prototype declaration, otherwise
platform code have to do it in .c files, which is ugly.

Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Acked-by: Tobias Klauser <tklauser@distanz.ch>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Anton Vorontsov and committed by
Greg Kroah-Hartman
5d89a48a 288e9feb

+4
+4
include/linux/altera_uart.h
··· 5 5 #ifndef __ALTUART_H 6 6 #define __ALTUART_H 7 7 8 + #include <linux/init.h> 9 + 8 10 struct altera_uart_platform_uart { 9 11 unsigned long mapbase; /* Physical address base */ 10 12 unsigned int irq; /* Interrupt vector */ 11 13 unsigned int uartclk; /* UART clock rate */ 12 14 unsigned int bus_shift; /* Bus shift (address stride) */ 13 15 }; 16 + 17 + int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp); 14 18 15 19 #endif /* __ALTUART_H */