From: Stefan Roese Date: Tue, 11 Nov 2008 09:29:09 +0000 (+0100) Subject: OneNAND: Save version_id in onenand_chip struct X-Git-Tag: v2009.03-rc1~200^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8cf11f3aa78673730e9ecbbe4b75213b53f212c8;p=u-boot OneNAND: Save version_id in onenand_chip struct The version (ver_id) was not stored in the onenand_chip structure and because of this the continuous locking scheme could be enabled on some chips. Signed-off-by: Stefan Roese --- diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 8d004d383b..f62b1aa25a 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c @@ -1970,6 +1970,7 @@ static int onenand_probe(struct mtd_info *mtd) /* Flash device information */ mtd->name = onenand_print_device_info(dev_id, ver_id); this->device_id = dev_id; + this->version_id = ver_id; density = onenand_get_density(dev_id); this->chipsize = (16 << density) << 20;