[U-Boot] [PATCH 14/18] rockchip: i2c: Convert to livetree
Philipp Tomsich
philipp.tomsich at theobroma-systems.com
Wed Aug 16 17:32:29 UTC 2017
Update the Rockchip I2C driver to support livetree.
Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
---
drivers/i2c/rk_i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c
index 8bc045a..c00b09a 100644
--- a/drivers/i2c/rk_i2c.c
+++ b/drivers/i2c/rk_i2c.c
@@ -369,7 +369,7 @@ static int rockchip_i2c_probe(struct udevice *bus)
{
struct rk_i2c *priv = dev_get_priv(bus);
- priv->regs = (void *)devfdt_get_addr(bus);
+ priv->regs = (void *)dev_read_addr(bus);
return 0;
}
--
2.1.4
More information about the U-Boot
mailing list