mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
i2c: cdns: Convert to livetree function
Update cadence i2c driver to support livetree
Similar changes were done by:
"net: zynq_gem: convert to use livetree"
(sha1: 26026e695a
)
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
@@ -419,7 +419,7 @@ static int cdns_i2c_ofdata_to_platdata(struct udevice *dev)
|
|||||||
struct clk clk;
|
struct clk clk;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
i2c_bus->regs = (struct cdns_i2c_regs *)devfdt_get_addr(dev);
|
i2c_bus->regs = (struct cdns_i2c_regs *)dev_read_addr(dev);
|
||||||
if (!i2c_bus->regs)
|
if (!i2c_bus->regs)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user