dm: gpio: add BCM6345 gpio driver
[oweals/u-boot.git] / drivers / gpio / omap_gpio.c
index cd960dc013f0f128be8d625aab83996e3863eb65..5338552179f6eec9b07c492d22f75a8779203a34 100644 (file)
@@ -23,7 +23,7 @@
 #include <fdtdec.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
-#include <asm/errno.h>
+#include <linux/errno.h>
 #include <malloc.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -320,7 +320,7 @@ static int omap_gpio_bind(struct udevice *dev)
                return -ENOMEM;
 
        plat->base = base_addr;
-       plat->port_name = fdt_get_name(gd->fdt_blob, dev->of_offset, NULL);
+       plat->port_name = fdt_get_name(gd->fdt_blob, dev_of_offset(dev), NULL);
        dev->platdata = plat;
 
        return 0;