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
arm: mvebu: turris_mox: start blinking PHY LEDs when entering rescue
[platform/kernel/u-boot.git]
/
common
/
iomux.c
diff --git
a/common/iomux.c
b/common/iomux.c
index
b9088aa
..
c428f71
100644
(file)
--- a/
common/iomux.c
+++ b/
common/iomux.c
@@
-158,8
+158,12
@@
int iomux_replace_device(const int console, const char *old, const char *new)
return -ENOMEM;
}
- strcat(tmp, ",");
- strcat(tmp, name);
+ if (arg) {
+ strcat(tmp, ",");
+ strcat(tmp, name);
+ }
+ else
+ strcpy(tmp, name);
arg = tmp;
size = strlen(tmp) + 1;