diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-30 08:48:38 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-11-09 23:04:01 +0100 |
commit | a54dfb195a701f85a44c0a6f2c3a695a6fdf004a (patch) | |
tree | 3dcfe379f5cd55e79f42e546cbc26b1640f81303 /drivers/mtd/ubi | |
parent | cf348c5510bb07f213f7b725b26e7fc0c79dc36e (diff) | |
download | barebox-a54dfb195a701f85a44c0a6f2c3a695a6fdf004a.tar.gz barebox-a54dfb195a701f85a44c0a6f2c3a695a6fdf004a.tar.xz |
mtd: rename master to parent
In Linux mtd->parent is what in barebox is mtd->master. Rename this
to get closer to the Linux mtd layer.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r-- | drivers/mtd/ubi/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 8a6d0ebde0..75fdee3692 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -241,8 +241,8 @@ static int get_bad_peb_limit(const struct ubi_device *ubi, int max_beb_per1024) * is that all the bad eraseblocks of the chip are in * the MTD partition we are attaching (ubi->mtd). */ - if (ubi->mtd->master) - device_size = ubi->mtd->master->size; + if (ubi->mtd->parent) + device_size = ubi->mtd->parent->size; else device_size = ubi->mtd->size; |