summaryrefslogtreecommitdiffstats
path: root/commands/ubi.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-03-14 12:36:33 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-08 13:34:45 +0200
commitae147875bc2e17b2449c6615eb0904814e18e9c8 (patch)
tree02fddc6741578682b703aa0865f7647fc38eb741 /commands/ubi.c
parent6ab4aa819a8f4ea322c65fad29077754bdefd990 (diff)
downloadbarebox-ae147875bc2e17b2449c6615eb0904814e18e9c8.tar.gz
barebox-ae147875bc2e17b2449c6615eb0904814e18e9c8.tar.xz
mtd: ubi: make ubi_detach_mtd_dev ubi internal
We want to extend the functionality of the ubi detach function, but we don't want to change the original detach function to make UBI updates easier. This adds a barebox specific detach function which encapsulates the original UBI function. Also this makes the original ubi detach function internal to ubi. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/ubi.c')
-rw-r--r--commands/ubi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/ubi.c b/commands/ubi.c
index 9463127151..8e35787fa2 100644
--- a/commands/ubi.c
+++ b/commands/ubi.c
@@ -128,7 +128,7 @@ static int do_ubidetach(int argc, char *argv[])
return COMMAND_ERROR_USAGE;
ubi_num = simple_strtoul(argv[1], NULL, 0);
- ret = ubi_detach_mtd_dev(ubi_num, 1);
+ ret = ubi_detach(ubi_num);
if (ret)
printf("failed to detach: %s\n", strerror(-ret));