Files
kernel_common_drivers/drivers/debug/main.c
T
qinglin.li da04048d61 debugfile: build debugfile with module [1/1]
PD#SWPL-94401

Problem:
build debugfile with module
build with gki_10

Solution:
build debugfile with module

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I8db0d7e81c93860cdd2ca8cbb5526e529d67da27
2022-10-19 02:18:01 -07:00

34 lines
609 B
C

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#include <linux/module.h>
#include "main.h"
static int __init debug_main_init(void)
{
#ifdef CONFIG_AMLOGIC_DEBUG_LOCKUP
debug_lockup_init();
cpu_mhz_init();
#endif
#ifdef CONFIG_AMLOGIC_DEBUG_ATRACE
meson_atrace_init();
#endif
#ifdef CONFIG_AMLOGIC_DEBUG_FILE
debug_file_init();
#endif
return 0;
}
static void __exit debug_main_exit(void)
{
#ifdef CONFIG_AMLOGIC_DEBUG_FILE
debug_file_exit();
#endif
}
module_init(debug_main_init);
module_exit(debug_main_exit);
MODULE_LICENSE("GPL v2");