MA-17912 irqchip: irqsteer: Allow IMX_IRQSTEER to be loadable as module
Allows imx irqsteer driver to be loaded as module. Signed-off-by: Jindong <jindong.yue@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
This commit is contained in:
parent
61b7aecf35
commit
bca7368798
|
@ -446,7 +446,7 @@ config CSKY_APB_INTC
|
|||
the controller's register.
|
||||
|
||||
config IMX_IRQSTEER
|
||||
bool "i.MX IRQSTEER support"
|
||||
tristate "i.MX IRQSTEER support"
|
||||
depends on ARCH_MXC || COMPILE_TEST
|
||||
default ARCH_MXC
|
||||
select IRQ_DOMAIN
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <linux/irqchip/chained_irq.h>
|
||||
#include <linux/irqdomain.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/of_irq.h>
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/spinlock.h>
|
||||
|
@ -402,6 +403,7 @@ static const struct of_device_id imx_irqsteer_dt_ids[] = {
|
|||
{ .compatible = "fsl,imx-irqsteer", },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, imx_irqsteer_dt_ids);
|
||||
|
||||
static struct platform_driver imx_irqsteer_driver = {
|
||||
.driver = {
|
||||
|
@ -412,4 +414,5 @@ static struct platform_driver imx_irqsteer_driver = {
|
|||
.probe = imx_irqsteer_probe,
|
||||
.remove = imx_irqsteer_remove,
|
||||
};
|
||||
builtin_platform_driver(imx_irqsteer_driver);
|
||||
module_platform_driver(imx_irqsteer_driver);
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
Loading…
Reference in New Issue