diff mbox

[RESEND,2/2] powerpc: axonram: Fix module autoload for OF platform driver

Message ID 1445353453-846-3-git-send-email-luisbg@osg.samsung.com (mailing list archive)
State Accepted
Headers show

Commit Message

Luis de Bethencourt Oct. 20, 2015, 3:04 p.m. UTC
From: Luis de Bethencourt <luis@debethencourt.com>

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

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
---
 arch/powerpc/sysdev/axonram.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Ellerman Nov. 26, 2015, 12:15 p.m. UTC | #1
On Tue, 2015-20-10 at 15:04:13 UTC, Luis de Bethencourt wrote:
> From: Luis de Bethencourt <luis@debethencourt.com>
> 
> This platform driver has a OF device ID table but the OF module
> alias information is not created so module autoloading won't work.
> 
> Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/b4f8144559e172f792f7fa92

cheers
diff mbox

Patch

diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c
index d2b79bc..51b41c9 100644
--- a/arch/powerpc/sysdev/axonram.c
+++ b/arch/powerpc/sysdev/axonram.c
@@ -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,