]> git.baikalelectronics.ru Git - uboot.git/commit
imx: serial_mxc: use CONFIG_IS_ENABLED instead of ifdef
authorAdam Ford <aford173@gmail.com>
Wed, 20 Feb 2019 04:07:22 +0000 (22:07 -0600)
committerStefano Babic <sbabic@denx.de>
Wed, 13 Mar 2019 08:14:35 +0000 (09:14 +0100)
commitba37f4240b8bb12d05969ef272a9321c5d65a2f1
tree217ec55f28351f75d183c60a3195c81392469d97
parentf2e271b07adcd4f5908f183a1799ee44c7d44344
imx: serial_mxc: use CONFIG_IS_ENABLED instead of ifdef

Kconfig allows boards to configured with DM_SERIAL and still
have SPL_DM_SERIAL disabled.  This patch changes the ifdef's
to CONFIG_IS_ENABLED to allow the modes to differ between
SPL and U-Boot.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial_mxc.c