]> git.sur5r.net Git - u-boot/blobdiff - drivers/gpio/pca953x_gpio.c
serial: serial-uclass: Add generic serial RX buffer support
[u-boot] / drivers / gpio / pca953x_gpio.c
index 0410add5183cb607ac55b5a41d1d19c9f5573755..4962f25230808d3c7fffba3a2eda89936007d025 100644 (file)
@@ -228,7 +228,7 @@ static int pca953x_get_function(struct udevice *dev, unsigned offset)
 }
 
 static int pca953x_xlate(struct udevice *dev, struct gpio_desc *desc,
-                        struct fdtdec_phandle_args *args)
+                        struct ofnode_phandle_args *args)
 {
        desc->offset = args->args[0];
        desc->flags = args->args[1] & GPIO_ACTIVE_LOW ? GPIOD_ACTIVE_LOW : 0;
@@ -265,7 +265,7 @@ static int pca953x_probe(struct udevice *dev)
                return -ENODEV;
        }
 
-       addr = fdtdec_get_int(gd->fdt_blob, dev->of_offset, "reg", 0);
+       addr = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), "reg", 0);
        if (addr == 0)
                return -ENODEV;