memory: mtk-smi: Support SMI modular
Subsystems (3)
Yong Wu
maintainerPATCH v2 1/1 memory: mtk-smi: Support SMI modular
This patch mainly support SMI modular. Switch MTK_SMI to tristate, and add module_exit/module_license.
---
This patch rebase on the clean v5.11-rc1.
and this one: memory: mtk-smi: Use platform_register_drivers
https://lore.kernel.org/linux-arm-kernel/[email protected]/
change note:
a) squash the last two of v1 into one patch.
b) Remove module_alias
--- drivers/memory/Kconfig | 2 +- drivers/memory/mtk-smi.c | 9 +++++++++ include/soc/mediatek/smi.h | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-)
drivers/memory/Kconfig +1 -1
@@ -173,7 +173,7 @@ config JZ4780_NEMC memory devices such as NAND and SRAM. config MTK_SMI - bool "Mediatek SoC Memory Controller driver" if COMPILE_TEST + tristate "MediaTek SoC Memory Controller driver" if COMPILE_TEST depends on ARCH_MEDIATEK || COMPILE_TEST help This driver is for the Memory Controller module in MediaTek SoCs,
drivers/memory/mtk-smi.c +9 -0
@@ -597,3 +597,12 @@ static int __init mtk_smi_init(void)return platform_register_drivers (smidrivers,ARRAY_SIZE (smidrivers)); }module_init (mtk_smi_init); + +static void __exit mtk_smi_exit(void) +{ +platform_unregister_drivers (smidrivers,ARRAY_SIZE (smidrivers)); +} +module_exit (mtk_smi_exit); + +MODULE_DESCRIPTION ("MediaTek SMI driver" ); +MODULE_LICENSE ("GPL v2" );
include/soc/mediatek/smi.h +1 -1
@@ -9,7 +9,7 @@#include <linux/bitops.h> #include <linux/device.h> -#ifdef CONFIG_MTK_SMI +#if IS_ENABLED (CONFIG_MTK_SMI )#define MTK_LARB_NR_MAX 16
Signature · 6 lines
2.18.0 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
Quoted 9 lines · Yong Wu
This patch mainly support SMI modular. Switch
MTK_SMIto tristate, and add module_exit/module_license.Signed-off-by Yong Wu <[email protected]>---
This patch rebase on the clean v5.11-rc1.
and this one: memory: mtk-smi: Useplatform_register_drivers
https://lore.kernel.org/linux-arm-kernel/[email protected]/
Quoted 8 lines
change note:
a) squash the last two of v1 into one patch.
b) Removemodule_alias--- drivers/memory/Kconfig | 2 +- drivers/memory/mtk-smi.c | 9 +++++++++ include/soc/mediatek/smi.h | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-)
Thanks, applied with slightly adjusted commit msg and subject.
Best regards,
Krzysztof
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu