Skip to contentSkip to conversation

powerpc: axonram: Fix module autoload for OF platform driver

PATCH New Luis de Bethencourt 1 participant 1 message Sep 18, 2015 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 powerpc: axonram: 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.

---
 arch/powerpc/sysdev/axonram.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/sysdev/axonram.c +1 -0
index d2b79bc..51b41c9 100644
@@ -312,6 +312,7 @@ static const struct of_device_id axon_ram_device_id[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, axon_ram_device_id);
 
 static struct platform_driver axon_ram_driver = {
 	.probe		= axon_ram_probe,
Signature · 1 line
2.4.6