Files
kernel_common_drivers/drivers/wireless/main.c
T
qinglin.li 55312c58ed wireless: combine wifi and bluetooth modules [1/1]
PD#SWPL-95684

Problem:
combine wifi and bluetooth modules

Solution:
result: amlogic-wireless.ko
original: amlogic-wifi.ko bt_device.ko

Verify:
sc2

Change-Id: I2b8ff4c2471407e419772e22920434c5c74b843e
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-05 12:30:53 +08:00

30 lines
577 B
C

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
//#define DEBUG
#include <linux/module.h>
#include <linux/amlogic/module_merge.h>
#include "main.h"
static int __init wireless_main_init(void)
{
pr_debug("### %s() start\n", __func__);
call_sub_init(wifi_dt_init);
call_sub_init(bt_init);
pr_debug("### %s() end\n", __func__);
return 0;
}
static void __exit wireless_main_exit(void)
{
bt_exit();
wifi_dt_exit();
}
module_init(wireless_main_init);
module_exit(wireless_main_exit);
MODULE_LICENSE("GPL v2");