mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
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>
This commit is contained in:
parent
05db0ad865
commit
5f8741d1bf
@ -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 = {
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user