Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 200e176a authored by Rahul Shahare's avatar Rahul Shahare
Browse files

msm: npu: Continue npu_probe() when !DEBUG_FS



npu_probe() should not be dependent on DEBUG_FS
API's returning success. Continue device probe,
when DEBUG_FS is disabled.

Change-Id: I2c32c2f96a7cec9847ce5f8c2082393e77a2ad7e
Signed-off-by: default avatarPrateek Sood <prsood@codeaurora.org>
Signed-off-by: default avatarRahul Shahare <rshaha@codeaurora.org>
parent 4c8629bc
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * it under the terms of the GNU General Public License version 2 and
@@ -2314,9 +2314,7 @@ static int npu_probe(struct platform_device *pdev)
	if (rc)
	if (rc)
		goto error_driver_init;
		goto error_driver_init;


	rc = npu_debugfs_init(npu_dev);
	npu_debugfs_init(npu_dev);
	if (rc)
		goto error_driver_init;


	npu_dev->smmu_ctx.attach_cnt = 0;
	npu_dev->smmu_ctx.attach_cnt = 0;
	npu_dev->smmu_ctx.mmu_mapping = arm_iommu_create_mapping(
	npu_dev->smmu_ctx.mmu_mapping = arm_iommu_create_mapping(