From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Fri, 4 Dec 2015 08:58:38 -0700 Subject: [U-Boot] [PATCH 2/4] dm: serial: ns16550: Add pre-reloc flag to the driver In-Reply-To: <1449244720-19253-1-git-send-email-sjg@chromium.org> References: <1449244720-19253-1-git-send-email-sjg@chromium.org> Message-ID: <1449244720-19253-2-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. Signed-off-by: Simon Glass Reported-by: Stephen Warren --- drivers/serial/ns16550.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 166deab..256c7ea 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 */ -- 2.6.0.rc2.230.g3dd15c0