diff --git a/asoc/codecs/wcd-mbhc-v2.c b/asoc/codecs/wcd-mbhc-v2.c index fd55715af6..a571661370 100644 --- a/asoc/codecs/wcd-mbhc-v2.c +++ b/asoc/codecs/wcd-mbhc-v2.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. +/* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved. */ #include #include @@ -1579,6 +1579,7 @@ static int wcd_mbhc_set_keycode(struct wcd_mbhc *mbhc) return result; } +#if IS_ENABLED(CONFIG_QCOM_FSA4480_I2C) static int wcd_mbhc_usbc_ana_event_handler(struct notifier_block *nb, unsigned long mode, void *ptr) { @@ -1597,6 +1598,13 @@ static int wcd_mbhc_usbc_ana_event_handler(struct notifier_block *nb, } return 0; } +#else +static int wcd_mbhc_usbc_ana_event_handler(struct notifier_block *nb, + unsigned long mode, void *ptr) +{ + return 0; +} +#endif int wcd_mbhc_start(struct wcd_mbhc *mbhc, struct wcd_mbhc_config *mbhc_cfg) {