ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 28 Nov 2018 09:04:16 +0000 (10:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:37:09 +0000 (15:37 +0100)
commit6fd7de500ef668af49dfa1e507eadb5d02a69ca0
tree1a32b5136e79f1fbd97fc4c9387ca1196e7f0699
parent4b9ea58bc7318c54170ffc21a9b2bcc845db481f
ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed

[ Upstream commit 7c41ea57beb2aee96fa63091a457b1a2826f3c42 ]

If debugging on i.MX is enabled DEBUG_IMX_UART_PORT defines which UART
is used for the debug output. If however debugging is off don't only
hide the then unused config item but drop it completely by using a
dependency instead of a conditional prompt.

This fixes DEBUG_IMX_UART_PORT being present in the kernel config even
if DEBUG_LL is disabled.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/Kconfig.debug