mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
mtd: OneNAND: Set MTD type
onenand_probe() function is missing to set mtd->type. So set same type as which sets onenand Linux kernel driver. After this change 'mtd list' prints correct type instead of 'Unknown'. Signed-off-by: Pali Rohár <pali@kernel.org>
This commit is contained in:
parent
71c27dbaae
commit
914689a204
1 changed files with 1 additions and 0 deletions
|
@ -2657,6 +2657,7 @@ int onenand_probe(struct mtd_info *mtd)
|
|||
else
|
||||
mtd->size = this->chipsize;
|
||||
|
||||
mtd->type = ONENAND_IS_MLC(this) ? MTD_MLCNANDFLASH : MTD_NANDFLASH;
|
||||
mtd->flags = MTD_CAP_NANDFLASH;
|
||||
mtd->_erase = onenand_erase;
|
||||
mtd->_read_oob = onenand_read_oob;
|
||||
|
|
Loading…
Reference in a new issue