All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] gpio: mxc: Support module build
@ 2020-07-07 23:25 ` Anson Huang
  0 siblings, 0 replies; 42+ messages in thread
From: Anson Huang @ 2020-07-07 23:25 UTC (permalink / raw)
  To: linux, shawnguo, s.hauer, kernel, festevam, catalin.marinas,
	will, linus.walleij, bgolaszewski, oleksandr.suvorov, aford173,
	andreas, hverkuil-cisco, bjorn.andersson, leoyang.li, vkoul,
	geert+renesas, olof, linux-arm-kernel, linux-kernel, linux-gpio
  Cc: Linux-imx

Change config to tristate, add module device table, module author,
description and license to support module build for i.MX GPIO driver.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
 drivers/gpio/Kconfig    | 2 +-
 drivers/gpio/gpio-mxc.c | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 05e0801..4d09ec5 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -397,7 +397,7 @@ config GPIO_MVEBU
 	select REGMAP_MMIO
 
 config GPIO_MXC
-	def_bool y
+	tristate "i.MX GPIO support"
 	depends on ARCH_MXC || COMPILE_TEST
 	select GPIO_GENERIC
 	select GENERIC_IRQ_CHIP
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
index 64278a4..643f4c55 100644
--- a/drivers/gpio/gpio-mxc.c
+++ b/drivers/gpio/gpio-mxc.c
@@ -15,6 +15,7 @@
 #include <linux/irq.h>
 #include <linux/irqdomain.h>
 #include <linux/irqchip/chained_irq.h>
+#include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/syscore_ops.h>
@@ -158,6 +159,7 @@ static const struct of_device_id mxc_gpio_dt_ids[] = {
 	{ .compatible = "fsl,imx7d-gpio", .data = &mxc_gpio_devtype[IMX35_GPIO], },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, mxc_gpio_dt_ids);
 
 /*
  * MX2 has one interrupt *for all* gpio ports. The list is used
@@ -604,3 +606,7 @@ static int __init gpio_mxc_init(void)
 	return platform_driver_register(&mxc_gpio_driver);
 }
 subsys_initcall(gpio_mxc_init);
+
+MODULE_AUTHOR("Shawn Guo <shawn.guo@linaro.org>");
+MODULE_DESCRIPTION("i.MX GPIO Driver");
+MODULE_LICENSE("GPL");
-- 
2.7.4


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

end of thread, other threads:[~2020-07-21  0:05 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 23:25 [PATCH 1/3] gpio: mxc: Support module build Anson Huang
2020-07-07 23:25 ` Anson Huang
2020-07-07 23:25 ` [PATCH 2/3] arm64: defconfig: Build in CONFIG_GPIO_MXC by default Anson Huang
2020-07-07 23:25   ` Anson Huang
2020-07-07 23:25 ` [PATCH 3/3] ARM: imx_v6_v7_defconfig: " Anson Huang
2020-07-07 23:25   ` Anson Huang
2020-07-10 11:16   ` Andreas Kemnade
2020-07-10 11:16     ` Andreas Kemnade
2020-07-10 13:29     ` Anson Huang
2020-07-10 13:29       ` Anson Huang
2020-07-11 21:17 ` [PATCH 1/3] gpio: mxc: Support module build Linus Walleij
2020-07-11 21:17   ` Linus Walleij
2020-07-12  1:34   ` Anson Huang
2020-07-12  1:34     ` Anson Huang
2020-07-15  2:44     ` Anson Huang
2020-07-15  2:44       ` Anson Huang
2020-07-16 13:54       ` Linus Walleij
2020-07-16 13:54         ` Linus Walleij
2020-07-16 14:37         ` Anson Huang
2020-07-16 14:37           ` Anson Huang
2020-07-17 12:01           ` Linus Walleij
2020-07-17 12:01             ` Linus Walleij
2020-07-17 12:14             ` Greg KH
2020-07-17 12:14               ` Greg KH
2020-07-17 12:27               ` Geert Uytterhoeven
2020-07-17 12:27                 ` Geert Uytterhoeven
2020-07-17 13:21                 ` Greg KH
2020-07-17 13:21                   ` Greg KH
2020-07-17 13:54                   ` Arnd Bergmann
2020-07-17 13:54                     ` Arnd Bergmann
2020-07-17 14:13                     ` Greg KH
2020-07-17 14:13                       ` Greg KH
2020-07-17 15:36                       ` Mark Brown
2020-07-17 15:36                         ` Mark Brown
2020-07-17 13:02               ` Arnd Bergmann
2020-07-17 13:02                 ` Arnd Bergmann
2020-07-17 13:23                 ` Greg KH
2020-07-17 13:23                   ` Greg KH
2020-07-17 13:44               ` Linus Walleij
2020-07-17 13:44                 ` Linus Walleij
2020-07-21  0:04             ` John Stultz
2020-07-21  0:04               ` John Stultz

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.