diff options
author | Luis de Bethencourt <luis@debethencourt.com> | 2015-09-15 18:41:33 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-09-21 22:00:39 +0800 |
commit | 5f8741d1bfa42b7e5443f2d2035de37bd5b73978 (patch) | |
tree | 3d08bef8dd93dff6b8c2ec9be7bd22c352613be5 /drivers/char | |
parent | 05db0ad8656376e341db6120758d04c247c9cf2f (diff) | |
download | op-kernel-dev-5f8741d1bfa42b7e5443f2d2035de37bd5b73978.zip op-kernel-dev-5f8741d1bfa42b7e5443f2d2035de37bd5b73978.tar.gz |
hwrng: Fix module autoload for OF platform drivers
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>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/hw_random/pasemi-rng.c | 1 | ||||
-rw-r--r-- | drivers/char/hw_random/ppc4xx-rng.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/hw_random/pasemi-rng.c b/drivers/char/hw_random/pasemi-rng.c index 51cb1d5..699b725 100644 --- a/drivers/char/hw_random/pasemi-rng.c +++ b/drivers/char/hw_random/pasemi-rng.c @@ -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 = { diff --git a/drivers/char/hw_random/ppc4xx-rng.c b/drivers/char/hw_random/ppc4xx-rng.c index b2cfda0..c0db438 100644 --- a/drivers/char/hw_random/ppc4xx-rng.c +++ b/drivers/char/hw_random/ppc4xx-rng.c @@ -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 = { |