nffs clean up
This commit is contained in:
1 parent
40d3d89236
commit
079c02cdef
4 files changed
+11
-13
No files matched your search
@@ -771,6 +771,8 @@ nffs_pkg_init(void)
|
||||
/* Ensure this function only gets called by sysinit. */
|
||||
SYSINIT_ASSERT_ACTIVE();
|
||||
|
||||
hal_flash_init();
|
||||
|
||||
/* Initialize nffs's internal state. */
|
||||
rc = nffs_init();
|
||||
SYSINIT_PANIC_ASSERT(rc == 0);
|
||||
|
||||
@@ -488,7 +488,6 @@ nffs_misc_desc_from_flash_area(int id, int *cnt, struct nffs_area_desc *nad)
|
||||
}
|
||||
|
||||
hf = hal_bsp_flash_dev(fa->fa_device_id);
|
||||
hf->hf_itf->hff_init();
|
||||
for (i = 0; i < hf->hf_sector_cnt; i++) {
|
||||
hf->hf_itf->hff_sector_info(i, &start, &size);
|
||||
if (start >= fa->fa_off && start < fa->fa_off + fa->fa_size) {
|
||||
|
||||
Reference in new issue
Block a user