Skip to contentSkip to conversation

soc: imx8m: Support building imx8m soc driver as module

PATCH Superseded Jindong Yue 1 participant 4 messages Feb 28, 2023 Arm i.MX and Layerscape

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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")
---
 drivers/soc/imx/imx8mp-blk-ctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/imx/imx8mp-blk-ctrl.c +1 -1
index 0f13853901df..33fdf5dfe62b 100644
@@ -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
#2 lore raw

PATCH 2/6 soc: imx: imx8mp-blk-ctrl: Add MODULE_LICENSE

In reply to Jindong Yue

Add 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
index 33fdf5dfe62b..cd5c41e41807 100644
@@ -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
#3 lore raw

PATCH 3/6 soc: imx: imx8m-blk-ctrl: Add MODULE_LICENSE

In reply to Jindong Yue

Add 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
index ddcf6be3d8b4..0fa342e9cfff 100644
@@ -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