summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/nx_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/nx_i2c.c')
-rw-r--r--drivers/i2c/nx_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/nx_i2c.c b/drivers/i2c/nx_i2c.c
index ca14a0ecac..c63a732557 100644
--- a/drivers/i2c/nx_i2c.c
+++ b/drivers/i2c/nx_i2c.c
@@ -240,7 +240,7 @@ static int nx_i2c_probe(struct udevice *dev)
return -EINVAL;
bus->regs = (struct nx_i2c_regs *)addr;
- bus->bus_num = dev->seq;
+ bus->bus_num = dev_seq(dev);
/* i2c node parsing */
i2c_process_node(dev);
@@ -621,6 +621,6 @@ U_BOOT_DRIVER(i2c_nexell) = {
.id = UCLASS_I2C,
.of_match = nx_i2c_ids,
.probe = nx_i2c_probe,
- .priv_auto_alloc_size = sizeof(struct nx_i2c_bus),
+ .priv_auto = sizeof(struct nx_i2c_bus),
.ops = &nx_i2c_ops,
};