]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: i2c: Convert to livetree
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 11 Sep 2017 20:04:23 +0000 (22:04 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 18 Sep 2017 18:40:35 +0000 (20:40 +0200)
Update the Rockchip I2C driver to support livetree.

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>
drivers/i2c/rk_i2c.c

index 68e66536e4e3af6ae759b461ee072b73ff9c4191..840b3f6046bfe2005e4aafd3f73769680510c8ea 100644 (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;
 }