summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-17 13:00:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-18 09:01:01 +0200
commit745594d51afa71b01bb5bfda969da19aa079d214 (patch)
treed6f2b87bd060a124fcf6d655f968506689d41bdf /drivers/mtd
parente9db2079a55162821e4566efdef5b3d3b5028e88 (diff)
downloadbarebox-745594d51afa71b01bb5bfda969da19aa079d214.tar.gz
barebox-745594d51afa71b01bb5bfda969da19aa079d214.tar.xz
fs: ubifs: Implement Linux rootarg
Add the parameter to boot from ubifs fileystems. This assumes that there will be only one UBI device registered in the kernel, otherwise there is no way to predict the ubi number. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/kapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c
index 08cb8dd7e0..7fc1aa8d70 100644
--- a/drivers/mtd/ubi/kapi.c
+++ b/drivers/mtd/ubi/kapi.c
@@ -36,6 +36,7 @@ void ubi_do_get_device_info(struct ubi_device *ubi, struct ubi_device_info *di)
di->min_io_size = ubi->min_io_size;
di->max_write_size = ubi->max_write_size;
di->ro_mode = ubi->ro_mode;
+ di->mtd = ubi->mtd;
}
EXPORT_SYMBOL_GPL(ubi_do_get_device_info);