diff mbox series

[v5,3/8] i2c: mxc_i2c: add DM_FLAG_PRE_RELOC flag

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

Commit Message

Biwen Li Dec. 19, 2019, 7:02 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 v5:
	- none

Changes in v4:
	- update copyright

Changes in v3:
	- none

Changes in v2:
	- none

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

Patch

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