diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-14 12:36:33 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-08 13:34:45 +0200 |
commit | ae147875bc2e17b2449c6615eb0904814e18e9c8 (patch) | |
tree | 02fddc6741578682b703aa0865f7647fc38eb741 /include/mtd | |
parent | 6ab4aa819a8f4ea322c65fad29077754bdefd990 (diff) | |
download | barebox-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 'include/mtd')
-rw-r--r-- | include/mtd/ubi-user.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mtd/ubi-user.h b/include/mtd/ubi-user.h index 2000ef2fd0..2002548526 100644 --- a/include/mtd/ubi-user.h +++ b/include/mtd/ubi-user.h @@ -406,6 +406,6 @@ struct ubi_set_vol_prop_req { int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024); -int ubi_detach_mtd_dev(int ubi_num, int anyway); +int ubi_detach(int ubi_num); #endif /* __UBI_USER_H__ */ |