UPSTREAM: rockchip: i2c: Convert to livetree

Update the Rockchip I2C driver to support livetree.

Change-Id: Iea1e1e9570bbe49da63f3c9b74ec40c3dfbbac48
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit cc91bdf8d4da6e66703a1bc99577f49ec3c7bf4a)
This commit is contained in:
Philipp Tomsich 2017-09-11 22:04:23 +02:00 committed by Kever Yang
parent cd7449a3c4
commit e2186db8e7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}