]> git.sur5r.net Git - u-boot/blobdiff - drivers/gpio/zynq_gpio.c
serial: serial-uclass: Add generic serial RX buffer support
[u-boot] / drivers / gpio / zynq_gpio.c
index 4ab23560810494a386a0b76bad285aa5d9b523ff..4cb75a862780e7dfed03cd90ba198a4a25e1fbb2 100644 (file)
@@ -12,7 +12,7 @@
 #include <common.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
-#include <asm/errno.h>
+#include <linux/errno.h>
 #include <dm.h>
 #include <fdtdec.h>
 
@@ -325,7 +325,6 @@ static const struct dm_gpio_ops gpio_zynq_ops = {
        .get_value              = zynq_gpio_get_value,
        .set_value              = zynq_gpio_set_value,
        .get_function           = zynq_gpio_get_function,
-
 };
 
 static const struct udevice_id zynq_gpio_ids[] = {
@@ -376,7 +375,7 @@ static int zynq_gpio_ofdata_to_platdata(struct udevice *dev)
 {
        struct zynq_gpio_privdata *priv = dev_get_priv(dev);
 
-       priv->base = dev_get_addr(dev);
+       priv->base = devfdt_get_addr(dev);
 
        return 0;
 }