soc: imx8m: Support building imx8m soc driver as module
cover soc: imx8m: Support building imx8m soc driver as module
This series adds support for building imx8m soc driver as module.
Jindong Yue (6):
soc: imx: imx8mp-blk-ctrl: Fix typo of imx8m_blk_ctrl_of_match
soc: imx: imx8mp-blk-ctrl: Add MODULE_LICENSE
soc: imx: imx8m-blk-ctrl: Add MODULE_LICENSE
PM: domains: Export genpd_dev_pm_attach_by_name()
soc: imx8m: Add MODULE_LICENSE
soc: imx8m: Support building imx8m soc driver as module
drivers/base/power/domain.c | 1 + drivers/soc/imx/Kconfig | 2 +- drivers/soc/imx/imx8m-blk-ctrl.c | 1 + drivers/soc/imx/imx8mp-blk-ctrl.c | 3 ++- drivers/soc/imx/soc-imx8m.c | 1 + 5 files changed, 6 insertions(+), 2 deletions(-)
Signature · 1 line
2.36.0
PATCH 1/6 soc: imx: imx8mp-blk-ctrl: Fix typo of imx8m_blk_ctrl_of_match
Once set CONFIG_SOC_IMX8M as m, following error occurs:
drivers/soc/imx/imx8mp-blk-ctrl.c:747:25: error: ‘imx8m_blk_ctrl_of_match’ undeclared here (not in a function); did you mean ‘imx8mp_blk_ctrl_of_match’?
747 | MODULE_DEVICE_TABLE(of, imx8m_blk_ctrl_of_match);
| ^~~~~~~~~~~~~~~~~~~~~~~Fix the typo.
--- drivers/soc/imx/imx8mp-blk-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/imx/imx8mp-blk-ctrl.c +1 -1
@@ -744,7 +744,7 @@ static const struct of_device_id imx8mp_blk_ctrl_of_match[] = {/* Sentinel */ } }; -MODULE_DEVICE_TABLE (of, imx8m_blk_ctrl_of_match); +MODULE_DEVICE_TABLE (of, imx8mp_blk_ctrl_of_match);static struct platform_driver imx8mp_blk_ctrl_driver = { .probe = imx8mp_blk_ctrl_probe,
Signature · 1 line
2.36.0
PATCH 2/6 soc: imx: imx8mp-blk-ctrl: Add MODULE_LICENSE
In reply to Jindong YueAdd MODULE_LICENSE to support building as a module.
--- drivers/soc/imx/imx8mp-blk-ctrl.c | 1 + 1 file changed, 1 insertion(+)
drivers/soc/imx/imx8mp-blk-ctrl.c +1 -0
@@ -756,3 +756,4 @@ static struct platform_driver imx8mp_blk_ctrl_driver = { }, };module_platform_driver (imx8mp_blk_ctrl_driver); +MODULE_LICENSE ("GPL" );
Signature · 1 line
2.36.0
PATCH 3/6 soc: imx: imx8m-blk-ctrl: Add MODULE_LICENSE
In reply to Jindong YueAdd MODULE_LICENSE to support building as a module.
--- drivers/soc/imx/imx8m-blk-ctrl.c | 1 + 1 file changed, 1 insertion(+)
drivers/soc/imx/imx8m-blk-ctrl.c +1 -0
@@ -876,3 +876,4 @@ static struct platform_driver imx8m_blk_ctrl_driver = { }, };module_platform_driver (imx8m_blk_ctrl_driver); +MODULE_LICENSE ("GPL" );
Signature · 1 line
2.36.0