summaryrefslogtreecommitdiffstats
path: root/mboxd.c
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-07-17 06:15:16 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-07-19 23:00:57 +0000
commit64ec3e4541276349ae3e37b5755f7b7e0b69ed31 (patch)
tree31988b1e3d2106f66840e89bb07d85b9d33bc98c /mboxd.c
parentaee738978b17c6a47a961ffe24b93eedaa0c63c5 (diff)
downloadphosphor-mboxd-64ec3e4541276349ae3e37b5755f7b7e0b69ed31.tar.gz
phosphor-mboxd-64ec3e4541276349ae3e37b5755f7b7e0b69ed31.zip
vpnor: rename APIs
To maintain consistency, rename vpnor_create_partition_table to init_vpnor and vpnor_destroy_partition_table to destroy_vpnor. Also move a bunch of vpnor specific string copy code from main() to init_vpnor(). Change-Id: Ia1b6598d4d308dd727916dc79be9b3b733f314f2 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'mboxd.c')
-rw-r--r--mboxd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/mboxd.c b/mboxd.c
index 43d2aa1..6e95b56 100644
--- a/mboxd.c
+++ b/mboxd.c
@@ -344,11 +344,7 @@ int main(int argc, char **argv)
}
#ifdef VIRTUAL_PNOR_ENABLED
- vpnor_create_partition_table(context);
-
- strcpy(context->paths.ro_loc, PARTITION_FILES_RO_LOC);
- strcpy(context->paths.rw_loc, PARTITION_FILES_RW_LOC);
- strcpy(context->paths.prsv_loc, PARTITION_FILES_PRSV_LOC);
+ init_vpnor(context);
#endif
/* Set the LPC bus mapping */
@@ -377,7 +373,7 @@ finish:
free_mbox_dev(context);
free_windows(context);
#ifdef VIRTUAL_PNOR_ENABLED
- vpnor_destroy_partition_table(context);
+ destroy_vpnor(context);
#endif
free(context);
OpenPOWER on IntegriCloud