diff options
-rw-r--r-- | arch/arm/mach-davinci/board-da830-evm.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index de82739c00ec..ef1ab0b6576e 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c | |||
@@ -598,6 +598,9 @@ static __init void da830_evm_init(void) | |||
598 | #ifdef CONFIG_SERIAL_8250_CONSOLE | 598 | #ifdef CONFIG_SERIAL_8250_CONSOLE |
599 | static int __init da830_evm_console_init(void) | 599 | static int __init da830_evm_console_init(void) |
600 | { | 600 | { |
601 | if (!machine_is_davinci_da830_evm()) | ||
602 | return 0; | ||
603 | |||
601 | return add_preferred_console("ttyS", 2, "115200"); | 604 | return add_preferred_console("ttyS", 2, "115200"); |
602 | } | 605 | } |
603 | console_initcall(da830_evm_console_init); | 606 | console_initcall(da830_evm_console_init); |
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index c1d45d7ac45b..ac2297c69a92 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
@@ -859,6 +859,9 @@ static __init void da850_evm_init(void) | |||
859 | #ifdef CONFIG_SERIAL_8250_CONSOLE | 859 | #ifdef CONFIG_SERIAL_8250_CONSOLE |
860 | static int __init da850_evm_console_init(void) | 860 | static int __init da850_evm_console_init(void) |
861 | { | 861 | { |
862 | if (!machine_is_davinci_da850_evm()) | ||
863 | return 0; | ||
864 | |||
862 | return add_preferred_console("ttyS", 2, "115200"); | 865 | return add_preferred_console("ttyS", 2, "115200"); |
863 | } | 866 | } |
864 | console_initcall(da850_evm_console_init); | 867 | console_initcall(da850_evm_console_init); |