Linux GPIO subsystem development
 help / color / mirror / Atom feed
* [PATCH -next] gpio: modepin: Enable module autoloading
@ 2024-09-02 11:58 Liao Chen
  2024-09-02 12:45 ` Michal Simek
  2024-09-02 13:01 ` Bartosz Golaszewski
  0 siblings, 2 replies; 4+ messages in thread
From: Liao Chen @ 2024-09-02 11:58 UTC (permalink / raw)
  To: linux-gpio, linux-arm-kernel, linux-kernel
  Cc: linus.walleij, brgl, michal.simek, liaochen4

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
 drivers/gpio/gpio-zynqmp-modepin.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-zynqmp-modepin.c b/drivers/gpio/gpio-zynqmp-modepin.c
index a0d69387c153..2f3c9ebfa78d 100644
--- a/drivers/gpio/gpio-zynqmp-modepin.c
+++ b/drivers/gpio/gpio-zynqmp-modepin.c
@@ -146,6 +146,7 @@ static const struct of_device_id modepin_platform_id[] = {
 	{ .compatible = "xlnx,zynqmp-gpio-modepin", },
 	{ }
 };
+MODULE_DEVICE_TABLE(of, modepin_platform_id);
 
 static struct platform_driver modepin_platform_driver = {
 	.driver = {
-- 
2.34.1


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

end of thread, other threads:[~2024-09-02 13:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02 11:58 [PATCH -next] gpio: modepin: Enable module autoloading Liao Chen
2024-09-02 12:45 ` Michal Simek
2024-09-02 13:01 ` Bartosz Golaszewski
2024-09-02 13:02   ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox