summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram Sharma <vikramsa@codeaurora.org>2020-05-11 23:33:35 +0530
committerNick Chung <nickchung@google.com>2020-06-17 13:21:24 +0800
commit7ff66257f6ff63d1d4b2df2f592d55bf3c0c918f (patch)
tree5eb58a70473d659ba795e9f1752739933e2e62c9
parentecc14dfea632b33bce287f4f0c0233f6e2dc5f94 (diff)
downloadcamera-kernel-7ff66257f6ff63d1d4b2df2f592d55bf3c0c918f.tar.gz
msm: camera: utils: Handle cx_ipeak register failure gracefully
If cx_ipeak def config is not available the device registration was failing which was resulting in probe failure. This change gives a warning and returns success. Bug: 159088802 Test: GCA, CTS/ITS CRs-Fixed: 2683960 Change-Id: Ide0c60f7e1bf83b2afcb1288972d087e009b9c8c Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
-rw-r--r--drivers/cam_utils/cam_cx_ipeak.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cam_utils/cam_cx_ipeak.c b/drivers/cam_utils/cam_cx_ipeak.c
index b0f93ba..58246e8 100644
--- a/drivers/cam_utils/cam_cx_ipeak.c
+++ b/drivers/cam_utils/cam_cx_ipeak.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
- * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
*/
#include <linux/of.h>
@@ -35,7 +35,7 @@ int cam_cx_ipeak_register_cx_ipeak(struct cam_hw_soc_info *soc_info)
if (cam_cx_ipeak) {
goto exit;
} else {
- rc = -EINVAL;
+ CAM_WARN(CAM_UTIL, "cx_ipeak_register failed");
goto exit;
}