Message ID | 3e3d2dfabd7a2cbf9650986a83bd238ec927d1ad.1313702401.git.bengardiner@nanometrics.ca (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index f707bb2..109b016 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -1253,7 +1253,7 @@ static int __init da850_evm_console_init(void) if (!machine_is_davinci_da850_evm()) return 0; - return add_preferred_console("ttyS", 2, "115200"); + return da850_reference_add_preferred_console(); } console_initcall(da850_evm_console_init); #endif diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c index cfad483..73d826d 100644 --- a/arch/arm/mach-davinci/board-omapl138-hawk.c +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c @@ -328,7 +328,7 @@ static int __init omapl138_hawk_console_init(void) if (!machine_is_omapl138_hawkboard()) return 0; - return add_preferred_console("ttyS", 2, "115200"); + return da850_reference_add_preferred_console(); } console_initcall(omapl138_hawk_console_init); #endif diff --git a/arch/arm/mach-davinci/da850-reference.c b/arch/arm/mach-davinci/da850-reference.c index 67b327b..25df6476 100644 --- a/arch/arm/mach-davinci/da850-reference.c +++ b/arch/arm/mach-davinci/da850-reference.c @@ -7,9 +7,16 @@ * or implied. */ +#include <linux/console.h> + #include <mach/da8xx.h> void __init da850_reference_map_io(void) { da850_init(); } + +int da850_reference_add_preferred_console(void) +{ + return add_preferred_console("ttyS", 2, "115200"); +} diff --git a/arch/arm/mach-davinci/include/mach/da850-reference.h b/arch/arm/mach-davinci/include/mach/da850-reference.h index 6837a98..ed72c53 100644 --- a/arch/arm/mach-davinci/include/mach/da850-reference.h +++ b/arch/arm/mach-davinci/include/mach/da850-reference.h @@ -14,5 +14,6 @@ #define DA850_REFERENCE_BOOT_PARAMS (DA8XX_DDR_BASE + 0x100) void __init da850_reference_map_io(void); +int da850_reference_add_preferred_console(void); #endif /* __ASM_ARCH_DAVINCI_DA850_REFERENCE_H */