On Fri, Mar 31, 2017 at 07:33:15AM +0200, Sascha Hauer wrote: > cdev->offset is currently not used, but can be useful later when > we separate the of_partition_fixup from mtd, because then we will > need the offset of the partition. > > Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> > --- > drivers/mtd/partition.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/mtd/partition.c b/drivers/mtd/partition.c > index 777cb758ce..745834384f 100644 > --- a/drivers/mtd/partition.c > +++ b/drivers/mtd/partition.c > @@ -225,6 +225,8 @@ struct mtd_info *mtd_add_partition(struct mtd_info *mtd, off_t offset, > if (ret) > goto err; > > + part->cdev.offset = offset; > + Nah, this does not work. Will drop this one. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox