diff --git a/spectral/core/spectral_module.c b/spectral/core/spectral_module.c index 0f946e7e89c0..eabff65f6b36 100644 --- a/spectral/core/spectral_module.c +++ b/spectral/core/spectral_module.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011,2017-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2011,2017-2019 The Linux Foundation. All rights reserved. * * * Permission to use, copy, modify, and/or distribute this software for @@ -31,8 +31,12 @@ MODULE_LICENSE("Dual BSD/GPL"); * * Return: None */ -static int __init -spectral_init_module(void) + +#ifndef QCA_SINGLE_WIFI_3_0 +static int __init spectral_init_module(void) +#else +int spectral_init_module(void) +#endif { spectral_info("qca_spectral module loaded"); wlan_spectral_init(); @@ -51,12 +55,17 @@ spectral_init_module(void) * * Return: None */ -static void __exit -spectral_exit_module(void) +#ifndef QCA_SINGLE_WIFI_3_0 +static void __exit spectral_exit_module(void) +#else +void spectral_exit_module(void) +#endif { wlan_spectral_deinit(); spectral_info("qca_spectral module unloaded"); } +#ifndef QCA_SINGLE_WIFI_3_0 module_init(spectral_init_module); module_exit(spectral_exit_module); +#endif