]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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 fded0a5cfcd72ce5d8539ce5626b11e2bbee38d7..00f97d9750b06ea79f0cd76cf1c4cbcf01e000c7 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 5f5f360628fc443aace79138d0b63c7f267b9148..e02bd000e750af26d62778048ad6b890b74fb5bb 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,