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
spi: npcm-fiu: add NPCM7xx FIU controller driver
[platform/kernel/u-boot.git]
/
cmd
/
ubi.c
diff --git
a/cmd/ubi.c
b/cmd/ubi.c
index
fe8ac58
..
fccbfdf
100644
(file)
--- a/
cmd/ubi.c
+++ b/
cmd/ubi.c
@@
-511,6
+511,11
@@
int ubi_part(char *part_name, const char *vid_header_offset)
struct mtd_info *mtd;
int err = 0;
+ if (ubi && ubi->mtd && !strcmp(ubi->mtd->name, part_name)) {
+ printf("UBI partition '%s' already selected\n", part_name);
+ return 0;
+ }
+
ubi_detach();
mtd_probe_devices();