diff options
author | Dima Zavin <dima@android.com> | 2010-02-11 12:01:33 -0800 |
---|---|---|
committer | Dima Zavin <dima@android.com> | 2010-02-11 12:01:33 -0800 |
commit | 2f22b1738a47c6c88b810578b3d23a4658bc2a96 (patch) | |
tree | c204c07bef0fab0fe11b87d70b4707168b8e345f | |
parent | fa8dbdf2cd593d2c1366a040b7dc82f3c35f268e (diff) | |
download | lk-2f22b1738a47c6c88b810578b3d23a4658bc2a96.tar.gz |
msm_shared: nand: Correctly compute the number of nand blocks
Signed-off-by: Dima Zavin <dima@android.com>
-rwxr-xr-x | platform/msm_shared/nand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/msm_shared/nand.c b/platform/msm_shared/nand.c index 237d1eb2..a374b81d 100755 --- a/platform/msm_shared/nand.c +++ b/platform/msm_shared/nand.c @@ -2121,14 +2121,13 @@ static void flash_read_id(dmov_s *cmdlist, unsigned *ptrlist) if (flash_info.block_size && flash_info.page_size) { flash_info.num_blocks = supported_flash[index].density; - flash_info.num_blocks /= (flash_info.block_size * flash_info.page_size); + flash_info.num_blocks /= flash_info.block_size; } else { flash_info.num_blocks = 0; } ASSERT(flash_info.num_blocks); - return; } // Assume 8 bit nand device for backward compatability |