mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
rockchip: i2c: Convert to livetree
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user