From 11fae871f16ae12680ff95fb79c9fc04591d73d2 Mon Sep 17 00:00:00 2001 From: Shuai Zhang Date: Wed, 19 Jan 2022 12:28:07 +0530 Subject: [PATCH] asoc: codec: Fix error makefile: Fix error and add version information Fix error caused by include error. Fix error caused by warning and add version information. Change-Id: I098025ec4dee178c709a2007a2cfe43ddafc23b5 --- Makefile.am | 1 + asoc/codecs/wcd9335-regmap.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index ccbb7a2c7aeb..5e3faccf5492 100755 --- a/Makefile.am +++ b/Makefile.am @@ -26,6 +26,7 @@ obj-m += asoc/ obj-m += asoc/codecs/ ifeq ($(TARGET_SUPPORT), $(filter $(TARGET_SUPPORT), sdmsteppe)) obj-m += asoc/codecs/wcd934x/ +KBUILD_CFLAGS += -Wno-error endif ifeq ($(TARGET_SUPPORT), $(filter $(TARGET_SUPPORT), qcs40x)) obj-m += asoc/codecs/bolero/ diff --git a/asoc/codecs/wcd9335-regmap.c b/asoc/codecs/wcd9335-regmap.c index 418327245018..ac734f8c46e9 100644 --- a/asoc/codecs/wcd9335-regmap.c +++ b/asoc/codecs/wcd9335-regmap.c @@ -1,13 +1,14 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2015-2018, 2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #include #include #include #include -#include +#include "wcd9335_registers.h" static const struct reg_sequence wcd9335_1_x_defaults[] = { { WCD9335_CODEC_RPM_CLK_GATE, 0x03, 0x00 },