* [U-Boot] [PATCH] UBI: Fix build problem noticed on Apollon (arm/testing repo) @ 2009-06-29 11:30 Stefan Roese 2009-06-29 12:23 ` Jean-Christophe PLAGNIOL-VILLARD 2009-07-07 14:33 ` Stefan Roese 0 siblings, 2 replies; 3+ messages in thread From: Stefan Roese @ 2009-06-29 11:30 UTC (permalink / raw) To: u-boot This patch fixes a build problem noticed on Apollon by using mtd_dev_by_eb() instead of "/" as done in the Linux UBI version. So this brings the U-Boot UBI version more in sync with the Linux version again. Signed-off-by: Stefan Roese <sr@denx.de> --- drivers/mtd/ubi/build.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 4f50b2d..354e80b 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -536,7 +536,7 @@ static int io_init(struct ubi_device *ubi) */ ubi->peb_size = ubi->mtd->erasesize; - ubi->peb_count = ubi->mtd->size / ubi->mtd->erasesize; + ubi->peb_count = mtd_div_by_eb(ubi->mtd->size, ubi->mtd); ubi->flash_size = ubi->mtd->size; if (ubi->mtd->block_isbad && ubi->mtd->block_markbad) -- 1.6.3.3 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] UBI: Fix build problem noticed on Apollon (arm/testing repo) 2009-06-29 11:30 [U-Boot] [PATCH] UBI: Fix build problem noticed on Apollon (arm/testing repo) Stefan Roese @ 2009-06-29 12:23 ` Jean-Christophe PLAGNIOL-VILLARD 2009-07-07 14:33 ` Stefan Roese 1 sibling, 0 replies; 3+ messages in thread From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-06-29 12:23 UTC (permalink / raw) To: u-boot On 13:30 Mon 29 Jun , Stefan Roese wrote: > This patch fixes a build problem noticed on Apollon by using > mtd_dev_by_eb() instead of "/" as done in the Linux UBI version. > So this brings the U-Boot UBI version more in sync with the Linux > version again. > > Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Best Regards, J. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] UBI: Fix build problem noticed on Apollon (arm/testing repo) 2009-06-29 11:30 [U-Boot] [PATCH] UBI: Fix build problem noticed on Apollon (arm/testing repo) Stefan Roese 2009-06-29 12:23 ` Jean-Christophe PLAGNIOL-VILLARD @ 2009-07-07 14:33 ` Stefan Roese 1 sibling, 0 replies; 3+ messages in thread From: Stefan Roese @ 2009-07-07 14:33 UTC (permalink / raw) To: u-boot On Monday 29 June 2009 13:30:50 Stefan Roese wrote: > This patch fixes a build problem noticed on Apollon by using > mtd_dev_by_eb() instead of "/" as done in the Linux UBI version. > So this brings the U-Boot UBI version more in sync with the Linux > version again. Applied to u-boot-ubi. Thanks. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de ===================================================================== ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-07-07 14:33 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-06-29 11:30 [U-Boot] [PATCH] UBI: Fix build problem noticed on Apollon (arm/testing repo) Stefan Roese 2009-06-29 12:23 ` Jean-Christophe PLAGNIOL-VILLARD 2009-07-07 14:33 ` Stefan Roese
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox