summaryrefslogtreecommitdiff
path: root/drivers/gpio/atmel_pio4.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-17 17:18:06 -0600
committerSimon Glass <sjg@chromium.org>2017-06-01 07:03:03 -0600
commit79fc0c784d35c1eeb3053e6458406c9280910cd2 (patch)
tree4cb1195bf8b901d6450b3e3c84e2cb5061b2afd2 /drivers/gpio/atmel_pio4.c
parenta821c4af79e4f5ce9b629b20473863397bbe9b10 (diff)
atmel: Fix up use of dm_scan_fdt_node()
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>
Diffstat (limited to 'drivers/gpio/atmel_pio4.c')
-rw-r--r--drivers/gpio/atmel_pio4.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c
index 73a5c54bef..f3689467f0 100644
--- a/drivers/gpio/atmel_pio4.c
+++ b/drivers/gpio/atmel_pio4.c
@@ -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)