Skip to contentSkip to conversation

ALSA: sparc: amd7930: Fix module autoload for OF platform driver

PATCH Applied Luis de Bethencourt 2 participants 2 messages Sep 3, 2015 – Sep 4, 2015 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: sparc: amd7930: Fix module autoload for OF platform driver

This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work.

---

Hello,

This patch adds the missing MODULE_DEVICE_TABLE() for OF to eport that information so modules have the correct aliases built-in and autoloading works correctly.

A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519

Thanks,
Luis

 sound/sparc/amd7930.c | 1 +
 1 file changed, 1 insertion(+)
sound/sparc/amd7930.c +1 -0
index 784ceb8..35c1f6a 100644
@@ -1064,6 +1064,7 @@ static const struct of_device_id amd7930_match[] = {
 	},
 	{},
 };
+MODULE_DEVICE_TABLE(of, amd7930_match);
 
 static struct platform_driver amd7930_sbus_driver = {
 	.driver = {
Signature · 1 line
2.4.6
Applied
#1 lore raw
Quoted 5 lines · Luis de Bethencourt

This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work.

Applied, thanks.

Takashi

Quoted 33 lines

---

Hello,

This patch adds the missing MODULE_DEVICE_TABLE() for OF to eport that information so modules have the correct aliases built-in and autoloading works correctly.

A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519

Thanks,
Luis

 sound/sparc/amd7930.c | 1 +
 1 file changed, 1 insertion(+)
sound/sparc/amd7930.c +1 -0
index 784ceb8..35c1f6a 100644
@@ -1064,6 +1064,7 @@ static const struct of_device_id amd7930_match[] = {
 	},
 	{},
 };
+MODULE_DEVICE_TABLE(of, amd7930_match);
 
 static struct platform_driver amd7930_sbus_driver = {
 	.driver = {
Signature · 1 line
2.4.6