@@ -217,16 +217,16 @@ int _get_addresses(BlockDevice *bd, bd_addr_t start_address, bd_size_t size, bd_
217
217
return 0 ;
218
218
}
219
219
220
- FileSystem *_get_filesystem_FAT (BlockDevice *bd, const char *mount)
220
+ FileSystem *_get_filesystem_FAT (const char *mount)
221
221
{
222
- static FATFileSystem sdcard (mount, bd );
222
+ static FATFileSystem sdcard (mount);
223
223
return &sdcard;
224
224
225
225
}
226
226
227
- FileSystem *_get_filesystem_LITTLE (BlockDevice *bd, const char *mount)
227
+ FileSystem *_get_filesystem_LITTLE (const char *mount)
228
228
{
229
- static LittleFileSystem flash (mount, bd );
229
+ static LittleFileSystem flash (mount);
230
230
return &flash;
231
231
}
232
232
@@ -236,12 +236,12 @@ FileSystemStore *_get_file_system_store(FileSystem *fs)
236
236
return &fss;
237
237
}
238
238
239
- FileSystem *_get_filesystem_default (BlockDevice *bd, const char *mount)
239
+ FileSystem *_get_filesystem_default (const char *mount)
240
240
{
241
241
#if COMPONENT_QSPIF || COMPONENT_SPIF || COMPONENT_DATAFLASH
242
- return _get_filesystem_LITTLE (bd, mount);
242
+ return _get_filesystem_LITTLE (mount);
243
243
#elif COMPONENT_SD
244
- return _get_filesystem_FAT (bd, mount);
244
+ return _get_filesystem_FAT (mount);
245
245
#else
246
246
return NULL ;
247
247
#endif
@@ -845,12 +845,6 @@ int _storage_config_tdb_external_common()
845
845
static TDBStore tdb_external (kvstore_config.external_bd );
846
846
kvstore_config.external_store = &tdb_external;
847
847
848
- ret = kvstore_config.external_store ->init ();
849
- if (ret != MBED_SUCCESS) {
850
- tr_error (" KV Config: Fail to init external TDBStore" );
851
- return ret;
852
- }
853
-
854
848
// Create SecureStore and initialize it
855
849
static SecureStore secst (kvstore_config.external_store , kvstore_config.internal_store );
856
850
@@ -955,8 +949,7 @@ int _storage_config_FILESYSTEM()
955
949
// component block device configured in the system. The priority is:
956
950
// QSPI -> SPI -> DATAFLASH == LITTLE
957
951
// SD == FAT
958
- kvstore_config.external_fs = GET_FILESYSTEM (MBED_CONF_STORAGE_FILESYSTEM_FILESYSTEM, kvstore_config.external_bd ,
959
- mount_point);
952
+ kvstore_config.external_fs = GET_FILESYSTEM (MBED_CONF_STORAGE_FILESYSTEM_FILESYSTEM, mount_point);
960
953
if (kvstore_config.external_fs == NULL ) {
961
954
tr_error (" KV Config: Fail to get FileSystem" );
962
955
return MBED_ERROR_FAILED_OPERATION ;
@@ -990,8 +983,7 @@ int _storage_config_FILESYSTEM_NO_RBP()
990
983
// component block device configured in the system. The priority is:
991
984
// QSPI -> SPI -> DATAFLASH == LITTLE
992
985
// SD == FAT
993
- kvstore_config.external_fs = GET_FILESYSTEM (MBED_CONF_STORAGE_FILESYSTEM_NO_RBP_FILESYSTEM, kvstore_config.external_bd ,
994
- mount_point);
986
+ kvstore_config.external_fs = GET_FILESYSTEM (MBED_CONF_STORAGE_FILESYSTEM_NO_RBP_FILESYSTEM, mount_point);
995
987
if (kvstore_config.external_fs == NULL ) {
996
988
tr_error (" KV Config: Fail to get FileSystem" );
997
989
return MBED_ERROR_FAILED_OPERATION ;
@@ -1026,12 +1018,6 @@ int _storage_config_filesystem_common()
1026
1018
return MBED_ERROR_FAILED_OPERATION ;
1027
1019
}
1028
1020
1029
- ret = kvstore_config.external_store ->init ();
1030
- if (ret != MBED_SUCCESS) {
1031
- tr_error (" KV Config: Fail to init FileSystemStore" );
1032
- return ret;
1033
- }
1034
-
1035
1021
// Create SecureStore and set it as main KVStore
1036
1022
static SecureStore secst (kvstore_config.external_store , kvstore_config.internal_store );
1037
1023
0 commit comments