summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-09-15 18:41:33 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-09-21 22:00:39 +0800
commit5f8741d1bfa42b7e5443f2d2035de37bd5b73978 (patch)
tree3d08bef8dd93dff6b8c2ec9be7bd22c352613be5 /drivers/char
parent05db0ad8656376e341db6120758d04c247c9cf2f (diff)
downloadop-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.c1
-rw-r--r--drivers/char/hw_random/ppc4xx-rng.c1
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 = {
OpenPOWER on IntegriCloud