[v4,3/8] i2c: mxc_i2c: add DM_FLAG_PRE_RELOC flag
diff mbox series

Message ID 20191209063230.33638-3-biwen.li@nxp.com
State Superseded
Delegated to: Priyanka Jain
Headers show
Series
  • [v4,1/8] rtc: pcf8563: Add driver model support
Related show

Commit Message

Biwen Li Dec. 9, 2019, 6:32 a.m. UTC
This adds DM_FLAG_PRE_RELOC flag to probe i2c driver
before relocation

Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Signed-off-by: Biwen Li <biwen.li@nxp.com>
---
Changes in v4:
	- update copyright

Changes in v3:
	- none

Changes in v2:
	- none

 drivers/i2c/mxc_i2c.c | 2 ++
 1 file changed, 2 insertions(+)

Patch
diff mbox series

diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index 786b5a2226..1c2a18bed2 100644
--- a/drivers/i2c/mxc_i2c.c
+++ b/drivers/i2c/mxc_i2c.c
@@ -10,6 +10,7 @@ 
  *  Copyright (C) 2005 Matthias Blaschke <blaschke at synertronixx.de>
  *  Copyright (C) 2007 RightHand Technologies, Inc.
  *  Copyright (C) 2008 Darius Augulis <darius.augulis at teltonika.lt>
+ *  Copyright (C) 2019 NXP
  *
  */
 
@@ -1049,5 +1050,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