diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2023-07-11 11:28:41 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-08-18 22:48:01 +0200 |
commit | edae09467141abdf1d04804d15a5ede8aa4562fd (patch) | |
tree | 8d0a2264b5189ca04ff8cf7b8457743ef37f4780 /drivers/mfd | |
parent | dt-bindings: mfd: Convert STMPE to YAML schema (diff) | |
download | linux-edae09467141abdf1d04804d15a5ede8aa4562fd.tar.xz linux-edae09467141abdf1d04804d15a5ede8aa4562fd.zip |
mfd: Add module build support for RZ/G2L MTU3a
Modified Kconfig to enable module build support for RZ/G2L MTU3a driver.
While at it, added module.h header file.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230711092841.119161-1-biju.das.jz@bp.renesas.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/Kconfig | 2 | ||||
-rw-r--r-- | drivers/mfd/rz-mtu3.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 8effe182266d..a3875d983b9f 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -1371,7 +1371,7 @@ config MFD_SC27XX_PMIC and it also adds the irq_chip parts for handling the PMIC chip events. config RZ_MTU3 - bool "Renesas RZ/G2L MTU3a core driver" + tristate "Renesas RZ/G2L MTU3a core driver" depends on (ARCH_RZG2L && OF) || COMPILE_TEST help Select this option to enable Renesas RZ/G2L MTU3a core driver for diff --git a/drivers/mfd/rz-mtu3.c b/drivers/mfd/rz-mtu3.c index 04006f4aa702..037956f0254b 100644 --- a/drivers/mfd/rz-mtu3.c +++ b/drivers/mfd/rz-mtu3.c @@ -11,6 +11,7 @@ #include <linux/irq.h> #include <linux/mfd/core.h> #include <linux/mfd/rz-mtu3.h> +#include <linux/module.h> #include <linux/of_platform.h> #include <linux/reset.h> #include <linux/spinlock.h> |