]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
atmel: Fix up use of dm_scan_fdt_node()
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 23:18:06 +0000 (17:18 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:03 +0000 (07:03 -0600)
This function should not be used outside the core driver-model code.
Update it to use dm_scan_fdt_dev() instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/gpio/atmel_pio4.c

index 73a5c54befd595bdef40a7f436d66eecbb39a2ed..f3689467f01fd9a2bf25e9dc0052108c6d01b88e 100644 (file)
@@ -10,7 +10,6 @@
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
-#include <dm/root.h>
 #include <asm/arch/hardware.h>
 #include <asm/gpio.h>
 #include <mach/gpio.h>
@@ -276,7 +275,7 @@ static const struct dm_gpio_ops atmel_pio4_ops = {
 
 static int atmel_pio4_bind(struct udevice *dev)
 {
-       return dm_scan_fdt_node(dev, gd->fdt_blob, dev_of_offset(dev), false);
+       return dm_scan_fdt_dev(dev);
 }
 
 static int atmel_pio4_probe(struct udevice *dev)