powerpc/rackmeter: Fix module autoload for OF platform driver
authorLuis de Bethencourt <luis@debethencourt.com>
Tue, 20 Oct 2015 15:13:53 +0000 (16:13 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
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 <luisbg@osg.samsung.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/macintosh/rack-meter.c

index 048901a1111a339d21ddfc3eaf92844f381e4142..caaec654d7ea028e001c0bbdaee4bd01c3a2a292 100644 (file)
@@ -582,6 +582,7 @@ static struct of_device_id rackmeter_match[] = {
        { .name = "i2s" },
        { }
 };
+MODULE_DEVICE_TABLE(of, rackmeter_match);
 
 static struct macio_driver rackmeter_driver = {
        .driver = {