Commit 79fc0c784d35c1eeb3053e6458406c9280910cd2
1 parent
a821c4af79
Exists in
smarc_8mq_lf_v2020.04
and in
20 other branches
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>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
drivers/gpio/atmel_pio4.c
| ... | ... | @@ -10,7 +10,6 @@ |
| 10 | 10 | #include <clk.h> |
| 11 | 11 | #include <dm.h> |
| 12 | 12 | #include <fdtdec.h> |
| 13 | -#include <dm/root.h> | |
| 14 | 13 | #include <asm/arch/hardware.h> |
| 15 | 14 | #include <asm/gpio.h> |
| 16 | 15 | #include <mach/gpio.h> |
| ... | ... | @@ -276,7 +275,7 @@ |
| 276 | 275 | |
| 277 | 276 | static int atmel_pio4_bind(struct udevice *dev) |
| 278 | 277 | { |
| 279 | - return dm_scan_fdt_node(dev, gd->fdt_blob, dev_of_offset(dev), false); | |
| 278 | + return dm_scan_fdt_dev(dev); | |
| 280 | 279 | } |
| 281 | 280 | |
| 282 | 281 | static int atmel_pio4_probe(struct udevice *dev) |