crypto: ux500 - Fix module autoload for OF platform drivers
authorLuis de Bethencourt <luis@debethencourt.com>
Fri, 28 Aug 2015 16:44:49 +0000 (18:44 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 21 Sep 2015 14:00:37 +0000 (22:00 +0800)
These 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 <luis@debethencourt.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ux500/cryp/cryp_core.c
drivers/crypto/ux500/hash/hash_core.c

index fded0a5..00f97d9 100644 (file)
@@ -1777,6 +1777,7 @@ static const struct of_device_id ux500_cryp_match[] = {
        { .compatible = "stericsson,ux500-cryp" },
        { },
 };
+MODULE_DEVICE_TABLE(of, ux500_cryp_match);
 
 static struct platform_driver cryp_driver = {
        .probe  = ux500_cryp_probe,
index 5f5f360..e02bd00 100644 (file)
@@ -1958,6 +1958,7 @@ static const struct of_device_id ux500_hash_match[] = {
        { .compatible = "stericsson,ux500-hash" },
        { },
 };
+MODULE_DEVICE_TABLE(of, ux500_hash_match);
 
 static struct platform_driver hash_driver = {
        .probe  = ux500_hash_probe,