Commit 5d89a48acfbaae02e7ecf97d4d8cc570a31964c5

Authored by Anton Vorontsov
Committed by Greg Kroah-Hartman
1 parent 288e9feb51

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>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

include/linux/altera_uart.h
... ... @@ -5,12 +5,16 @@
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 */