All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] reset: imx7: Support module build
@ 2020-06-29 10:13 ` Anson Huang
  0 siblings, 0 replies; 42+ messages in thread
From: Anson Huang @ 2020-06-29 10:13 UTC (permalink / raw)
  To: linux, shawnguo, s.hauer, kernel, festevam, catalin.marinas,
	will, p.zabel, arnd, stefan.agner, oleksandr.suvorov,
	bjorn.andersson, leoyang.li, vkoul, geert+renesas, olof,
	linux-arm-kernel, linux-kernel
  Cc: Linux-imx

Add module device table, module license to support module build.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
 drivers/reset/Kconfig      | 4 ++--
 drivers/reset/reset-imx7.c | 4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
index d9efbfd..033ab60 100644
--- a/drivers/reset/Kconfig
+++ b/drivers/reset/Kconfig
@@ -65,9 +65,9 @@ config RESET_HSDK
 	  This enables the reset controller driver for HSDK board.
 
 config RESET_IMX7
-	bool "i.MX7/8 Reset Driver" if COMPILE_TEST
+	tristate "i.MX7/8 Reset Driver"
 	depends on HAS_IOMEM
-	default SOC_IMX7D || (ARM64 && ARCH_MXC)
+	depends on SOC_IMX7D || (ARM64 && ARCH_MXC) || COMPILE_TEST
 	select MFD_SYSCON
 	help
 	  This enables the reset controller driver for i.MX7 SoCs.
diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c
index d170fe6..4660c93 100644
--- a/drivers/reset/reset-imx7.c
+++ b/drivers/reset/reset-imx7.c
@@ -8,7 +8,7 @@
  */
 
 #include <linux/mfd/syscon.h>
-#include <linux/mod_devicetable.h>
+#include <linux/module.h>
 #include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/reset-controller.h>
@@ -386,6 +386,7 @@ static const struct of_device_id imx7_reset_dt_ids[] = {
 	{ .compatible = "fsl,imx8mp-src", .data = &variant_imx8mp },
 	{ /* sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, imx7_reset_dt_ids);
 
 static struct platform_driver imx7_reset_driver = {
 	.probe	= imx7_reset_probe,
@@ -395,3 +396,4 @@ static struct platform_driver imx7_reset_driver = {
 	},
 };
 builtin_platform_driver(imx7_reset_driver);
+MODULE_LICENSE("GPL v2");
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2020-06-29 21:30 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 10:13 [PATCH 1/3] reset: imx7: Support module build Anson Huang
2020-06-29 10:13 ` Anson Huang
2020-06-29 10:13 ` [PATCH 2/3] arm64: defconfig: Select CONFIG_RESET_IMX7 by default Anson Huang
2020-06-29 10:13   ` Anson Huang
2020-06-29 11:29   ` Arnd Bergmann
2020-06-29 11:29     ` Arnd Bergmann
2020-06-29 11:34     ` Anson Huang
2020-06-29 11:34       ` Anson Huang
2020-06-29 11:53       ` Arnd Bergmann
2020-06-29 11:53         ` Arnd Bergmann
2020-06-29 12:09         ` Anson Huang
2020-06-29 12:09           ` Anson Huang
2020-06-29 12:30           ` Arnd Bergmann
2020-06-29 12:30             ` Arnd Bergmann
2020-06-29 12:46             ` Anson Huang
2020-06-29 12:46               ` Anson Huang
2020-06-29 12:55               ` Arnd Bergmann
2020-06-29 12:55                 ` Arnd Bergmann
2020-06-29 10:13 ` [PATCH 3/3] ARM: imx: Select RESET_IMX7 for i.MX7D Anson Huang
2020-06-29 10:13   ` Anson Huang
2020-06-29 11:31   ` Arnd Bergmann
2020-06-29 11:31     ` Arnd Bergmann
2020-06-29 11:36     ` Anson Huang
2020-06-29 11:36       ` Anson Huang
2020-06-29 11:47       ` Arnd Bergmann
2020-06-29 11:47         ` Arnd Bergmann
2020-06-29 11:54         ` Anson Huang
2020-06-29 11:54           ` Anson Huang
2020-06-29 12:02           ` Arnd Bergmann
2020-06-29 12:02             ` Arnd Bergmann
2020-06-29 10:41 ` [PATCH 1/3] reset: imx7: Support module build Arnd Bergmann
2020-06-29 10:41   ` Arnd Bergmann
2020-06-29 10:45   ` Anson Huang
2020-06-29 10:45     ` Anson Huang
2020-06-29 11:28     ` Arnd Bergmann
2020-06-29 11:28       ` Arnd Bergmann
2020-06-29 11:32       ` Anson Huang
2020-06-29 11:32         ` Anson Huang
2020-06-29 11:41         ` Arnd Bergmann
2020-06-29 11:41           ` Arnd Bergmann
2020-06-29 11:44           ` Anson Huang
2020-06-29 11:44             ` Anson Huang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.