1 /****************************************************************************** 2 * 3 * Copyright(c) 2016 - 2022 Realtek Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 *****************************************************************************/ 15 16 #include <linux/kernel.h> 17 #include <drv_types.h> 18 #include <rtw_mem.h> 19 20 extern int rtkm_prealloc_init(void); 21 extern void rtkm_prealloc_destroy(void); 22 rtw_mem_init(void)23static int __init rtw_mem_init(void) 24 { 25 rtkm_prealloc_init(); 26 return 0; 27 } 28 rtw_mem_exit(void)29static void __exit rtw_mem_exit(void) 30 { 31 rtkm_prealloc_destroy(); 32 } 33 34 module_init(rtw_mem_init); 35 module_exit(rtw_mem_exit); 36 37 MODULE_LICENSE("GPL"); 38 MODULE_DESCRIPTION("Realtek Wireless Lan Driver"); 39 MODULE_AUTHOR("Realtek Semiconductor Corp."); 40 MODULE_VERSION("DRIVERVERSION"); 41