serial: ns16550: Link in the DM driver when when using platdata
authorAlexandru Gagniuc <alex.g@adaptrum.com>
Mon, 27 Mar 2017 19:54:19 +0000 (12:54 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Apr 2017 17:43:23 +0000 (11:43 -0600)
commit6f8c351e98726ec9b569bf16f7efa2a4e4648727
tree823955ee5b6fb7e727bbebd8ac97c6045d652dec
parent40a808f173008729a0c631ab84693b6a2b0dcfc9
serial: ns16550: Link in the DM driver when when using platdata

Do not condition the compilation of the U_BOOT_DRIVER by !OF_PLATDATA.
This is inconsistent with the majority of other drivers. This also
blocks OF_PLATDATA boards with an 16550-compatible serial from using
serial in SPL.

Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Added tweak for rock to avoid a TPL build failure:
Signed-off-by: Simon Glass <sjg@chromium.org>
configs/rock_defconfig
drivers/serial/ns16550.c