altera_uart: Fix missing prototype for registering an early console
authorAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 1 Oct 2010 13:22:55 +0000 (17:22 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:20:08 +0000 (10:20 -0700)
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>
include/linux/altera_uart.h

index c022c82..a10a907 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef        __ALTUART_H
 #define        __ALTUART_H
 
+#include <linux/init.h>
+
 struct altera_uart_platform_uart {
        unsigned long mapbase;  /* Physical address base */
        unsigned int irq;       /* Interrupt vector */
@@ -12,4 +14,6 @@ struct altera_uart_platform_uart {
        unsigned int bus_shift; /* Bus shift (address stride) */
 };
 
+int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp);
+
 #endif /* __ALTUART_H */