uio: msm_sharedmem: By pass failure for hyp_assign_phys
For legacy targets hypervisor is not supported. So by pass hyp_assign_phys failure. Change-Id: Iabd301d577922e066cf6aa9257735d60f968dc69 Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
a2c17c1706
commit
842dc26b17
@@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define DRIVER_NAME "msm_sharedmem"
|
#define DRIVER_NAME "msm_sharedmem"
|
||||||
@@ -186,11 +186,8 @@ static int msm_sharedmem_probe(struct platform_device *pdev)
|
|||||||
"qcom,vm-nav-path");
|
"qcom,vm-nav-path");
|
||||||
|
|
||||||
/* Set up the permissions for the shared ram that was allocated. */
|
/* Set up the permissions for the shared ram that was allocated. */
|
||||||
ret = setup_shared_ram_perms(client_id, shared_mem_pyhsical,
|
setup_shared_ram_perms(client_id, shared_mem_pyhsical,
|
||||||
shared_mem_size, vm_nav_path);
|
shared_mem_size, vm_nav_path);
|
||||||
if (ret)
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
/* Setup device */
|
/* Setup device */
|
||||||
info->mmap = sharedmem_mmap; /* Custom mmap function. */
|
info->mmap = sharedmem_mmap; /* Custom mmap function. */
|
||||||
info->name = clnt_res->name;
|
info->name = clnt_res->name;
|
||||||
|
|||||||
Reference in New Issue
Block a user