From: Philipp Tomsich Date: Mon, 11 Sep 2017 20:04:23 +0000 (+0200) Subject: rockchip: i2c: Convert to livetree X-Git-Tag: baikal/mips/sdk5.9~3747^2~19 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=25710736d393ffa556573cfb2faad6a1e34279d5;p=uboot.git rockchip: i2c: Convert to livetree Update the Rockchip I2C driver to support livetree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Acked-by: Heiko Schocher --- diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c index 68e66536e4..840b3f6046 100644 --- a/drivers/i2c/rk_i2c.c +++ b/drivers/i2c/rk_i2c.c @@ -382,7 +382,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 = dev_read_addr_ptr(bus); return 0; }