2023-02-28 07:59:07

by Jindong Yue

[permalink] [raw]
Subject: [PATCH 0/6] 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(-)

--
2.36.0



2023-02-28 07:59:16

by Jindong Yue

[permalink] [raw]
Subject: [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.

Fixes: 556f5cf9568a ("soc: imx: add i.MX8MP HSIO blk-ctrl")
Signed-off-by: Jindong Yue <[email protected]>
---
drivers/soc/imx/imx8mp-blk-ctrl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/imx/imx8mp-blk-ctrl.c b/drivers/soc/imx/imx8mp-blk-ctrl.c
index 0f13853901df..33fdf5dfe62b 100644
--- a/drivers/soc/imx/imx8mp-blk-ctrl.c
+++ b/drivers/soc/imx/imx8mp-blk-ctrl.c
@@ -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,
--
2.36.0


2023-02-28 07:59:23

by Jindong Yue

[permalink] [raw]
Subject: [PATCH 2/6] soc: imx: imx8mp-blk-ctrl: Add MODULE_LICENSE

Add MODULE_LICENSE to support building as a module.

Signed-off-by: Jindong Yue <[email protected]>
---
drivers/soc/imx/imx8mp-blk-ctrl.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/soc/imx/imx8mp-blk-ctrl.c b/drivers/soc/imx/imx8mp-blk-ctrl.c
index 33fdf5dfe62b..cd5c41e41807 100644
--- a/drivers/soc/imx/imx8mp-blk-ctrl.c
+++ b/drivers/soc/imx/imx8mp-blk-ctrl.c
@@ -756,3 +756,4 @@ static struct platform_driver imx8mp_blk_ctrl_driver = {
},
};
module_platform_driver(imx8mp_blk_ctrl_driver);
+MODULE_LICENSE("GPL");
--
2.36.0


2023-02-28 07:59:34

by Jindong Yue

[permalink] [raw]
Subject: [PATCH 3/6] soc: imx: imx8m-blk-ctrl: Add MODULE_LICENSE

Add MODULE_LICENSE to support building as a module.

Signed-off-by: Jindong Yue <[email protected]>
---
drivers/soc/imx/imx8m-blk-ctrl.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c
index ddcf6be3d8b4..0fa342e9cfff 100644
--- a/drivers/soc/imx/imx8m-blk-ctrl.c
+++ b/drivers/soc/imx/imx8m-blk-ctrl.c
@@ -876,3 +876,4 @@ static struct platform_driver imx8m_blk_ctrl_driver = {
},
};
module_platform_driver(imx8m_blk_ctrl_driver);
+MODULE_LICENSE("GPL");
--
2.36.0