Files
BPI-CM9-Linux/aml-comp/kernel/aml-6.12/common_drivers/drivers/rtc/main.c
T
2026-08-24 10:03:24 +08:00

34 lines
673 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 rtc_main_init(void)
{
pr_debug("### %s() start\n", __func__);
call_sub_init(vrtc_init);
call_sub_init(rtc_init);
call_sub_init(aml_rtc_dev_init);
call_sub_init(meson_pmic6b_rtc_init);
pr_debug("### %s() end\n", __func__);
return 0;
}
static void __exit rtc_main_exit(void)
{
vrtc_exit();
aml_rtc_dev_exit();
rtc_exit();
meson_pmic6b_rtc_exit();
}
module_init(rtc_main_init);
module_exit(rtc_main_exit);
MODULE_LICENSE("GPL v2");