hwrng: Fix module autoload for OF platform drivers
authorLuis de Bethencourt <luis@debethencourt.com>
Tue, 15 Sep 2015 16:41:33 +0000 (18:41 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 21 Sep 2015 14:00:39 +0000 (22:00 +0800)
This platform drivers have 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: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/pasemi-rng.c
drivers/char/hw_random/ppc4xx-rng.c

index 51cb1d5cc489773072edcaf637091172c55ef1fe..699b7259f5d71e14e79b73f6943f352c0c0cbc18 100644 (file)
@@ -138,6 +138,7 @@ static const struct of_device_id rng_match[] = {
        { .compatible      = "pasemi,pwrficient-rng", },
        { },
 };
+MODULE_DEVICE_TABLE(of, rng_match);
 
 static struct platform_driver rng_driver = {
        .driver = {
index b2cfda0fa93e28535772cd67237ee681885d274f..c0db4387d2e20e6cb75993b8aecd16a5249f47d2 100644 (file)
@@ -129,6 +129,7 @@ static const struct of_device_id ppc4xx_rng_match[] = {
        { .compatible = "amcc,ppc440epx-rng", },
        {},
 };
+MODULE_DEVICE_TABLE(of, ppc4xx_rng_match);
 
 static struct platform_driver ppc4xx_rng_driver = {
        .driver = {