asoc: fix compilation issue
Initialize some uninitlaized variable and correct some log.
Change-Id: Ibd29a423450f6470e99941a7f3970128d11d9197
Signed-off-by: Xiao Li <lixiao@codeaurora.org>
diff --git a/asoc/kona.c b/asoc/kona.c
index bbb7909..0272de5 100644
--- a/asoc/kona.c
+++ b/asoc/kona.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
- * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
*/
#include <linux/clk.h>
@@ -7596,8 +7596,8 @@
u32 codec_max_aux_devs = 0;
u32 codec_aux_dev_cnt = 0;
int i;
- struct msm_wsa881x_dev_info *wsa881x_dev_info;
- struct aux_codec_dev_info *aux_cdc_dev_info;
+ struct msm_wsa881x_dev_info *wsa881x_dev_info = NULL;
+ struct aux_codec_dev_info *aux_cdc_dev_info = NULL;
const char *auxdev_name_prefix[1];
char *dev_name_str = NULL;
int found = 0;