]> git.sur5r.net Git - u-boot/commitdiff
gpio: omap_gpio: Add DM_FLAG_PRE_RELOC flag
authorFaiz Abbas <faiz_abbas@ti.com>
Thu, 15 Mar 2018 15:41:34 +0000 (21:11 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 22 Mar 2018 20:32:30 +0000 (16:32 -0400)
With DM enabled in SPL, DM_FLAG_PRE_RELOC is required for
the omap_gpio driver to be bound to the gpio devices.

Therefore, add DM_FLAG_PRE_RELOC flag to the omap_gpio driver.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/gpio/omap_gpio.c

index 7243100219a99399dd7b9985ed393a944ca42883..559f29b8018ce832253b484e9d2330c1a183cd24 100644 (file)
@@ -345,6 +345,7 @@ U_BOOT_DRIVER(gpio_omap) = {
        .bind   = omap_gpio_bind,
        .probe  = omap_gpio_probe,
        .priv_auto_alloc_size = sizeof(struct gpio_bank),
+       .flags = DM_FLAG_PRE_RELOC,
 };
 
 #endif /* CONFIG_DM_GPIO */