diff options
author | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-10-01 09:22:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:20:08 -0400 |
commit | 5d89a48acfbaae02e7ecf97d4d8cc570a31964c5 (patch) | |
tree | d4693f5a7b9c7607844b784a0adf2e442d8903f2 /include/linux/altera_uart.h | |
parent | 288e9feb51f428377d486e18a107c144554e5e40 (diff) |
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.h | 4 |
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 @@ | |||
5 | #ifndef __ALTUART_H | 5 | #ifndef __ALTUART_H |
6 | #define __ALTUART_H | 6 | #define __ALTUART_H |
7 | 7 | ||
8 | #include <linux/init.h> | ||
9 | |||
8 | struct altera_uart_platform_uart { | 10 | struct altera_uart_platform_uart { |
9 | unsigned long mapbase; /* Physical address base */ | 11 | unsigned long mapbase; /* Physical address base */ |
10 | unsigned int irq; /* Interrupt vector */ | 12 | unsigned int irq; /* Interrupt vector */ |
@@ -12,4 +14,6 @@ struct altera_uart_platform_uart { | |||
12 | unsigned int bus_shift; /* Bus shift (address stride) */ | 14 | unsigned int bus_shift; /* Bus shift (address stride) */ |
13 | }; | 15 | }; |
14 | 16 | ||
17 | int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp); | ||
18 | |||
15 | #endif /* __ALTUART_H */ | 19 | #endif /* __ALTUART_H */ |