summaryrefslogtreecommitdiff
path: root/drivers/char/hw_random/pasemi-rng.c
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-09-15 19:41:33 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2015-09-21 17:00:39 +0300
commit5f8741d1bfa42b7e5443f2d2035de37bd5b73978 (patch)
tree3d08bef8dd93dff6b8c2ec9be7bd22c352613be5 /drivers/char/hw_random/pasemi-rng.c
parent05db0ad8656376e341db6120758d04c247c9cf2f (diff)
downloadlinux-5f8741d1bfa42b7e5443f2d2035de37bd5b73978.tar.xz
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/hw_random/pasemi-rng.c')
-rw-r--r--drivers/char/hw_random/pasemi-rng.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/hw_random/pasemi-rng.c b/drivers/char/hw_random/pasemi-rng.c
index 51cb1d5cc489..699b7259f5d7 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 = {