firmware: ti_sci: Update ti_sci_msg_req_reboot to include domain
[pandora-u-boot.git] / drivers / i2c / iproc_i2c.c
index a846e0a..d975e78 100644 (file)
@@ -4,6 +4,7 @@
  *
  */
 
+#include <asm/global_data.h>
 #include <asm/io.h>
 #include <common.h>
 #include <config.h>
@@ -672,13 +673,13 @@ static int iproc_i2c_probe(struct udevice *bus)
        return iproc_i2c_init(bus);
 }
 
-static int iproc_i2c_ofdata_to_platdata(struct udevice *bus)
+static int iproc_i2c_of_to_plat(struct udevice *bus)
 {
        struct iproc_i2c *bus_prvdata = dev_get_priv(bus);
        int node = dev_of_offset(bus);
        const void *blob = gd->fdt_blob;
 
-       bus_prvdata->base = map_physmem(devfdt_get_addr(bus),
+       bus_prvdata->base = map_physmem(dev_read_addr(bus),
                                        sizeof(void *),
                                        MAP_NOCACHE);
 
@@ -705,9 +706,9 @@ U_BOOT_DRIVER(iproc_i2c) = {
        .name   = "iproc_i2c",
        .id     = UCLASS_I2C,
        .of_match = iproc_i2c_ids,
-       .ofdata_to_platdata = iproc_i2c_ofdata_to_platdata,
+       .of_to_plat = iproc_i2c_of_to_plat,
        .probe  = iproc_i2c_probe,
-       .priv_auto_alloc_size = sizeof(struct iproc_i2c),
+       .priv_auto      = sizeof(struct iproc_i2c),
        .ops    = &iproc_i2c_ops,
        .flags  = DM_FLAG_PRE_RELOC,
 };