From: Simon Glass Date: Mon, 1 May 2017 09:18:47 -0600 Subject: [U-Boot] [PATCH v2 4/9] atmel: Fix up use of dm_scan_fdt_node() In-Reply-To: <20170501151852.26670-1-sjg@chromium.org> References: <20170501151852.26670-1-sjg@chromium.org> Message-ID: <20170501151852.26670-5-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v2: None drivers/gpio/atmel_pio4.c | 3 +-- 1 file changed, 1 insertion(+), 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 #include #include -#include #include #include #include @@ -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) -- 2.13.0.rc0.306.g87b477812d-goog