mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
caa8b668c5
PD#SWPL-99365 Problem: gki optimize Solution: 1, code optimize 2, watchdog_hld to ko Verify: sc2_ah212 Change-Id: Ibb1b16bd61d794defb39d53f17ad86179ba4a661 Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
34 lines
634 B
C
34 lines
634 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"
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_DEBUG)
|
|
#include <linux/amlogic/gki_module.h>
|
|
#endif
|
|
|
|
static int __init pm_main_init(void)
|
|
{
|
|
pr_debug("### %s() start\n", __func__);
|
|
call_sub_init(pm_init);
|
|
call_sub_init(reboot_init);
|
|
pr_debug("### %s() end\n", __func__);
|
|
|
|
return 0;
|
|
}
|
|
|
|
static void __exit pm_main_exit(void)
|
|
{
|
|
reboot_exit();
|
|
pm_exit();
|
|
}
|
|
|
|
module_init(pm_main_init);
|
|
module_exit(pm_main_exit);
|
|
MODULE_LICENSE("GPL v2");
|