Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
44 lines
940 B
C
44 lines
940 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2019 MediaTek Inc.
|
|
*/
|
|
|
|
#include <linux/fs.h>
|
|
#include <linux/module.h>
|
|
#include <linux/of_device.h>
|
|
|
|
#include <mtk_dbg_common_v1.h>
|
|
#include <mtk_lpm_module.h>
|
|
#include <gs/mtk_lpm_pwr_gs.h>
|
|
#include "mt6833_dbg_fs_common.h"
|
|
#include "mt6833_power_gs_compare.h"
|
|
|
|
static void __exit mt6833_dbg_exit(void)
|
|
{
|
|
mt6833_dbg_lpm_fs_deinit();
|
|
mt6833_dbg_spm_fs_deinit();
|
|
mt6833_dbg_lpm_deinit();
|
|
#ifdef CONFIG_MTK_LPM_GS_DUMP_SUPPORT
|
|
mt6833_power_gs_deinit();
|
|
#endif
|
|
}
|
|
|
|
static int __init mt6833_dbg_init(void)
|
|
{
|
|
mt6833_dbg_lpm_init();
|
|
mt6833_dbg_lpm_fs_init();
|
|
mt6833_dbg_spm_fs_init();
|
|
#ifdef CONFIG_MTK_LPM_GS_DUMP_SUPPORT
|
|
mt6833_power_gs_init();
|
|
#endif
|
|
pr_info("%s %d: finish", __func__, __LINE__);
|
|
return 0;
|
|
}
|
|
|
|
module_init(mt6833_dbg_init);
|
|
module_exit(mt6833_dbg_exit);
|
|
|
|
MODULE_LICENSE("GPL");
|
|
MODULE_DESCRIPTION("MT6833 Low Power FileSystem");
|
|
MODULE_AUTHOR("MediaTek Inc.");
|