summaryrefslogtreecommitdiff
path: root/include/linux/altera_uart.h
diff options
context:
space:
mode:
authorAnton Vorontsov <cbouatmailru@gmail.com>2010-10-01 17:22:55 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 10:20:08 -0700
commit5d89a48acfbaae02e7ecf97d4d8cc570a31964c5 (patch)
treed4693f5a7b9c7607844b784a0adf2e442d8903f2 /include/linux/altera_uart.h
parent288e9feb51f428377d486e18a107c144554e5e40 (diff)
downloadlwn-5d89a48acfbaae02e7ecf97d4d8cc570a31964c5.tar.gz
lwn-5d89a48acfbaae02e7ecf97d4d8cc570a31964c5.zip
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>
Diffstat (limited to 'include/linux/altera_uart.h')
-rw-r--r--include/linux/altera_uart.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/altera_uart.h b/include/linux/altera_uart.h
index c022c82db7ca..a10a90791976 100644
--- a/include/linux/altera_uart.h
+++ b/include/linux/altera_uart.h
@@ -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 */