Skip to content

Commit

Permalink
hwrng: Fix module autoload for OF platform drivers
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
luisbg authored and herbertx committed Sep 21, 2015
1 parent 05db0ad commit 5f8741d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/hw_random/pasemi-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 1 addition & 0 deletions drivers/char/hw_random/ppc4xx-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5f8741d

Please sign in to comment.