mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00: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:
parent
a904a16bc1
commit
cc91bdf8d4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue