|
@@ -324,9 +324,8 @@ static inline unsigned int nanddev_ntargets(const struct nand_device *nand)
|
|
*/
|
|
*/
|
|
static inline unsigned int nanddev_neraseblocks(const struct nand_device *nand)
|
|
static inline unsigned int nanddev_neraseblocks(const struct nand_device *nand)
|
|
{
|
|
{
|
|
- return (u64)nand->memorg.luns_per_target *
|
|
|
|
- nand->memorg.eraseblocks_per_lun *
|
|
|
|
- nand->memorg.pages_per_eraseblock;
|
|
|
|
|
|
+ return nand->memorg.ntargets * nand->memorg.luns_per_target *
|
|
|
|
+ nand->memorg.eraseblocks_per_lun;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|