char: hw_random: Fix module autoload for OF platform drivers
Subsystems (3)
PATCH 1/2 char: hw_random: 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 <[email protected]>
--- drivers/char/hw_random/pasemi-rng.c | 1 + drivers/char/hw_random/ppc4xx-rng.c | 1 + 2 files changed, 2 insertions(+)
drivers/char/hw_random/pasemi-rng.c +1 -0
@@ -138,6 +138,7 @@ static struct of_device_id rng_match[] = { { .compatible = "pasemi,pwrficient-rng", }, { }, }; +MODULE_DEVICE_TABLE (of, rng_match);static struct platform_driver rng_driver = { .driver = {
drivers/char/hw_random/ppc4xx-rng.c +1 -0
@@ -129,6 +129,7 @@ static 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 = {
Signature · 1 line
2.4.6
Herbert Xu
maintainerQuoted 4 lines · Luis de Bethencourt
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 <[email protected]>
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt