Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: davinci: remove test for undefined Kconfig macro

The DaVinci debugging macro contains a check for
CONFIG_DEBUG_DAVINCI_DA8XX_UART0. But there's no corresponding Kconfig
symbol, so this test will always evaluate to false. That Kconfig symbol
is not needed because, as __arch_decomp_setup() shows, there are no
DaVinci DA8XX boards that use UART0 for debugging. We can remove two
lines of unneeded code.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>

authored by

Paul Bolle and committed by
Sekhar Nori
93bd6515 d7ca4c75

-2
-2
arch/arm/mach-davinci/include/mach/debug-macro.S
··· 24 24 25 25 #if defined(CONFIG_DEBUG_DAVINCI_DMx_UART0) 26 26 #define UART_BASE DAVINCI_UART0_BASE 27 - #elif defined(CONFIG_DEBUG_DAVINCI_DA8XX_UART0) 28 - #define UART_BASE DA8XX_UART0_BASE 29 27 #elif defined(CONFIG_DEBUG_DAVINCI_DA8XX_UART1) 30 28 #define UART_BASE DA8XX_UART1_BASE 31 29 #elif defined(CONFIG_DEBUG_DAVINCI_DA8XX_UART2)