]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/gpio/rk_gpio.c
dm: Rename dev_addr..() functions
[people/ms/u-boot.git] / drivers / gpio / rk_gpio.c
index 64abcbaa0ac8c654fe1e7342ae783a861a0d5938..6f7366acbad4d02f60919c5f08cf9a693b5e1a10 100644 (file)
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <syscon.h>
-#include <asm/errno.h>
+#include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
@@ -104,7 +104,7 @@ static int rockchip_gpio_probe(struct udevice *dev)
        int ret;
 
        /* This only supports RK3288 at present */
-       priv->regs = (struct rockchip_gpio_regs *)dev_get_addr(dev);
+       priv->regs = (struct rockchip_gpio_regs *)devfdt_get_addr(dev);
        ret = uclass_first_device_err(UCLASS_PINCTRL, &priv->pinctrl);
        if (ret)
                return ret;