From: Simon Glass Date: Fri, 4 Dec 2015 15:58:38 +0000 (-0700) Subject: dm: serial: ns16550: Add pre-reloc flag to the driver X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=b7e5a6439f3075ec79f8d38a3572fc3b68d583d3;p=u-boot.git dm: serial: ns16550: Add pre-reloc flag to the driver For platforms that don't use device tree in SPL the only way to mark this driver as 'required by relocation' is with the DM_FLAG_PRE_RELOC flag. Add this to ensure that the driver is bound. Fixes: fde7e18938d8 ("dm: tegra: pci: Move CONFIG_PCI_TEGRA to Kconfig") Signed-off-by: Simon Glass Reported-by: Stephen Warren Acked-by: Thomas Chou --- diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 23243ee84e..3fab3f1efb 100644 --- a/drivers/serial/ns16550.c +++ b/drivers/serial/ns16550.c @@ -451,5 +451,6 @@ U_BOOT_DRIVER(ns16550_serial) = { .priv_auto_alloc_size = sizeof(struct NS16550), .probe = ns16550_serial_probe, .ops = &ns16550_serial_ops, + .flags = DM_FLAG_PRE_RELOC, }; #endif /* CONFIG_DM_SERIAL */