Skip to contentSkip to conversation

gpio: modepin: Enable module autoloading

PATCH Applied Liao Chen 3 participants 4 messages Sep 2, 2024

Subsystems (2)
lore
Share & tools
lore

Liao Chen

author
#0 lore raw

PATCH 1/1 gpio: modepin: Enable module autoloading

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

---
 drivers/gpio/gpio-zynqmp-modepin.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-zynqmp-modepin.c +1 -0
index a0d69387c153..2f3c9ebfa78d 100644
@@ -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 = {
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Liao Chen

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

---
  drivers/gpio/gpio-zynqmp-modepin.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpio/gpio-zynqmp-modepin.c +0 -0
index a0d69387c153..2f3c9ebfa78d 100644

drivers/gpio/gpio-zynqmp-modepin.c static const struct of_device_id modepin_platform_id[] = { · line 152

Quoted 7 lines
drivers/gpio/gpio-zynqmp-modepin.c +1 -0
@@ -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 = {

I did the same change internally some day ago but didn't send it.

Thanks,
Michal

#2 lore raw
In reply to Liao Chen

From: Bartosz Golaszewski <[email protected]>

Quoted 4 lines · Liao Chen

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

Applied, thanks!

[1/1] gpio: modepin: Enable module autoloading

      commit: a5135526426df5319d5f4bcd15ae57c45a97714b

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>
#3 lore raw
Quoted 10 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Quoted 4 lines · Liao Chen

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

Quoted 8 lines

Applied, thanks!

[1/1] gpio: modepin: Enable module autoloading

      commit: a5135526426df5319d5f4bcd15ae57c45a97714b

Best regards,
--
Bartosz Golaszewski <[email protected]>

I also added the Fixes tag.

Bart