MA-17422-6 gpio: Allow GPIO_MXC to be loadable as module

Allows imx gpio driver to be loaded as module.

Signed-off-by: zhang sanshan <pete.zhang@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
This commit is contained in:
zhang sanshan 2020-06-22 14:16:59 +08:00 committed by Jindong
parent 45483d0ced
commit 08f20c7487
2 changed files with 4 additions and 1 deletions

View File

@ -378,7 +378,8 @@ config GPIO_MVEBU
select REGMAP_MMIO
config GPIO_MXC
def_bool y
tristate "NXP MXC GPIO Support"
default y
depends on ARCH_MXC
select GPIO_GENERIC
select GENERIC_IRQ_CHIP

View File

@ -15,6 +15,7 @@
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/irqchip/chained_irq.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>
@ -896,3 +897,4 @@ static int __init gpio_mxc_init(void)
return platform_driver_register(&mxc_gpio_driver);
}
subsys_initcall(gpio_mxc_init);
MODULE_LICENSE("GPL v2");