BACKPORT: mtk-mmsys: Change mtk-mmsys & mtk-mutex to modules
Change mtk-mmsys & mtk-mutex to modules for gki Bug: 335112842 (cherry picked from commit a7596e62dac7318456c1aa9af5bfccf0f8e6ad7e https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ master) Signed-off-by: Yongqiang Niu <yongqiang.niu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20221118063018.13520-1-yongqiang.niu@mediatek.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> Change-Id: I5a0789d26b188ca576a92df34af5940f539f1ac3
This commit is contained in:
parent
34e8dc4ed0
commit
8943be7d1b
@ -68,7 +68,7 @@ config MTK_SCPSYS_PM_DOMAINS
|
||||
tasks in the system.
|
||||
|
||||
config MTK_MMSYS
|
||||
bool "MediaTek MMSYS Support"
|
||||
tristate "MediaTek MMSYS Support"
|
||||
default ARCH_MEDIATEK
|
||||
depends on HAS_IOMEM
|
||||
help
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <linux/delay.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/reset-controller.h>
|
||||
@ -426,4 +427,19 @@ static struct platform_driver mtk_mmsys_drv = {
|
||||
.probe = mtk_mmsys_probe,
|
||||
};
|
||||
|
||||
builtin_platform_driver(mtk_mmsys_drv);
|
||||
static int __init mtk_mmsys_init(void)
|
||||
{
|
||||
return platform_driver_register(&mtk_mmsys_drv);
|
||||
}
|
||||
|
||||
static void __exit mtk_mmsys_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&mtk_mmsys_drv);
|
||||
}
|
||||
|
||||
module_init(mtk_mmsys_init);
|
||||
module_exit(mtk_mmsys_exit);
|
||||
|
||||
MODULE_AUTHOR("Yongqiang Niu <yongqiang.niu@mediatek.com>");
|
||||
MODULE_DESCRIPTION("MediaTek SoC MMSYS driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -874,4 +874,19 @@ static struct platform_driver mtk_mutex_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
builtin_platform_driver(mtk_mutex_driver);
|
||||
static int __init mtk_mutex_init(void)
|
||||
{
|
||||
return platform_driver_register(&mtk_mutex_driver);
|
||||
}
|
||||
|
||||
static void __exit mtk_mutex_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&mtk_mutex_driver);
|
||||
}
|
||||
|
||||
module_init(mtk_mutex_init);
|
||||
module_exit(mtk_mutex_exit);
|
||||
|
||||
MODULE_AUTHOR("Yongqiang Niu <yongqiang.niu@mediatek.com>");
|
||||
MODULE_DESCRIPTION("MediaTek SoC MUTEX driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
Loading…
Reference in New Issue
Block a user