i2c: mxc_i2c: add DM_FLAG_PRE_RELOC flag
authorBiwen Li <biwen.li@nxp.com>
Tue, 31 Dec 2019 07:33:39 +0000 (15:33 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 4 Feb 2020 10:50:25 +0000 (16:20 +0530)
This adds DM_FLAG_PRE_RELOC flag to probe i2c driver
before relocation

Signed-off-by: Biwen Li <biwen.li@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/i2c/mxc_i2c.c

index 786b5a2226b65f3f70db6c837273ec9a55948fc5..6b7ce985b3aaa4a6754da4295bed6f14cf21bb6f 100644 (file)
@@ -1049,5 +1049,6 @@ U_BOOT_DRIVER(i2c_mxc) = {
        .probe = mxc_i2c_probe,
        .priv_auto_alloc_size = sizeof(struct mxc_i2c_bus),
        .ops = &mxc_i2c_ops,
+       .flags = DM_FLAG_PRE_RELOC,
 };
 #endif