powerpc/axonram: Fix module autoload for OF platform driver
authorLuis de Bethencourt <[email protected]>
Tue, 20 Oct 2015 15:04:13 +0000 (16:04 +0100)
committerMichael Ellerman <[email protected]>
Thu, 26 Nov 2015 11:11:18 +0000 (22:11 +1100)
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
arch/powerpc/sysdev/axonram.c

index 7a399b4d60a03a5a83d091113cfb257c45f92b39..c713b349d967946fe1b95e8ae9ff1ec18f7761bc 100644 (file)
@@ -313,6 +313,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,