projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dm: core: Use -ENOSPC in acpi_get_path()
[platform/kernel/u-boot.git]
/
drivers
/
core
/
acpi.c
diff --git
a/drivers/core/acpi.c
b/drivers/core/acpi.c
index
0901b92
..
2176d8b
100644
(file)
--- a/
drivers/core/acpi.c
+++ b/
drivers/core/acpi.c
@@
-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 -E
2BIG
;
+ return -E
NOSPC
;
strcpy(out_path, path);
return 0;
}