VHE: Update code to use vm_mem_get_mode

Updated code base to use vm_mem_get_mode as opposed to using
mm_vm_get_mode directly, to account for el0 partitions.

Change-Id: Ie9d31aecc8e1e60705cb4983dfdcb222f5787f2e
Signed-off-by: Raghu Krishnamurthy <raghu.ncstate@gmail.com>
diff --git a/src/ffa_memory.c b/src/ffa_memory.c
index 265f2f3..b62bc4e 100644
--- a/src/ffa_memory.c
+++ b/src/ffa_memory.c
@@ -479,8 +479,7 @@
 			 * Ensure that this constituent memory range is all
 			 * mapped with the same mode.
 			 */
-			if (!mm_vm_get_mode(&vm.vm->ptable, begin, end,
-					    &current_mode)) {
+			if (!vm_mem_get_mode(vm, begin, end, &current_mode)) {
 				return ffa_error(FFA_DENIED);
 			}