Explorar o código

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>
Luis de Bethencourt %!s(int64=10) %!d(string=hai) anos
pai
achega
5f8741d1bf

+ 1 - 0
drivers/char/hw_random/pasemi-rng.c

@@ -138,6 +138,7 @@ static const struct of_device_id rng_match[] = {
 	{ .compatible      = "pasemi,pwrficient-rng", },
 	{ .compatible      = "pasemi,pwrficient-rng", },
 	{ },
 	{ },
 };
 };
+MODULE_DEVICE_TABLE(of, rng_match);
 
 
 static struct platform_driver rng_driver = {
 static struct platform_driver rng_driver = {
 	.driver = {
 	.driver = {

+ 1 - 0
drivers/char/hw_random/ppc4xx-rng.c

@@ -129,6 +129,7 @@ static const struct of_device_id ppc4xx_rng_match[] = {
 	{ .compatible = "amcc,ppc440epx-rng", },
 	{ .compatible = "amcc,ppc440epx-rng", },
 	{},
 	{},
 };
 };
+MODULE_DEVICE_TABLE(of, ppc4xx_rng_match);
 
 
 static struct platform_driver ppc4xx_rng_driver = {
 static struct platform_driver ppc4xx_rng_driver = {
 	.driver = {
 	.driver = {