Files
kernel_common_drivers/drivers/gpio/main.c
T
Qianggui Song 77cc50034b gpio: porting gpiolib-sysfs from common [1/1]
PD#SWPL-166758

Problem:
Some customer neeed to support gpio sysfs in gki mode

Solution:
Porting common gpiolib-sysfs to common_driver

Verify:
T7_an400 & txhd2_be311

Change-Id: I72f60644fa383abe05409bfe0bf978c7ea901d92
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2024-04-28 06:08:17 -07:00

34 lines
739 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 gpio_main_init(void)
{
pr_debug("### %s() start\n", __func__);
call_sub_init(gpiolib_module_init);
call_sub_init(gpiolib_sysfs_module_init);
call_sub_init(meson_gpio_irq_init);
call_sub_init(meson_pmic6b_gpio_init);
pr_debug("### %s() end\n", __func__);
return 0;
}
static void __exit gpio_main_exit(void)
{
meson_gpio_irq_exit();
gpiolib_sysfs_module_exit();
gpiolib_module_exit();
meson_pmic6b_gpio_exit();
}
module_init(gpio_main_init);
module_exit(gpio_main_exit);
MODULE_LICENSE("GPL v2");