Ver código fonte

crypto: amcc - Fix module autoload for OF platform driver

This platform driver has 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 <luis@debethencourt.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Luis de Bethencourt 10 anos atrás
pai
commit
3dc1597b6b
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      drivers/crypto/amcc/crypto4xx_core.c

+ 1 - 0
drivers/crypto/amcc/crypto4xx_core.c

@@ -1284,6 +1284,7 @@ static const struct of_device_id crypto4xx_match[] = {
 	{ .compatible      = "amcc,ppc4xx-crypto",},
 	{ },
 };
+MODULE_DEVICE_TABLE(of, crypto4xx_match);
 
 static struct platform_driver crypto4xx_driver = {
 	.driver = {