]> Git Repo - J-u-boot.git/blobdiff - cmd/gpio.c
Merge patch series "Apply SoM overlays on phyCORE-AM6xx SoMs"
[J-u-boot.git] / cmd / gpio.c
index f4565982ecd9c60fcba1b08e62904a5eec7c453f..7a43dc6ab18430ea934761ace9bc0a3614881213 100644 (file)
@@ -6,7 +6,6 @@
  * Licensed under the GPL-2 or later.
  */
 
-#include <common.h>
 #include <command.h>
 #include <errno.h>
 #include <dm.h>
@@ -17,6 +16,7 @@
 #endif
 #include <asm/gpio.h>
 #include <linux/err.h>
+#include <dm/device_compat.h>
 
 __weak int name_to_gpio(const char *name)
 {
@@ -69,7 +69,8 @@ static void gpio_get_description(struct udevice *dev, const char *bank_name,
        printf("%s\n", buf);
        return;
 err:
-       printf("Error %d\n", ret);
+       if (ret != -ENOENT)
+               printf("Error %d\n", ret);
 }
 
 static int do_gpio_status(bool all, const char *gpio_name)
This page took 0.024321 seconds and 4 git commands to generate.