dm: core: Use -ENOSPC in acpi_get_path()
[platform/kernel/u-boot.git] / drivers / core / acpi.c
index 0901b92..2176d8b 100644 (file)
@@ -91,7 +91,7 @@ int acpi_get_path(const struct udevice *dev, char *out_path, int maxlen)
        path = dev_read_string(dev, "acpi,path");
        if (path) {
                if (strlen(path) >= maxlen)
-                       return -E2BIG;
+                       return -ENOSPC;
                strcpy(out_path, path);
                return 0;
        }