aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ux500/hash
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-05-16 07:27:26 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-05-27 08:07:58 -0400
commit4a2e2d0d6bb3689fd317b1c89b7b6eb19b632600 (patch)
treed8e07f818ca5680435543a5f8e837d8bc6dd5c65 /drivers/crypto/ux500/hash
parentc2dade34eaa2384f2921b0a29bb8ac43848e0317 (diff)
crypto: ux500/hash - Enable DT probing of the driver
By providing an OF match table with a suitable compatible string, we can ensure the ux500-hasht driver is probed by supplying an associated DT node in a given platform's Device Tree. Cc: linux-crypto@vger.kernel.org Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/crypto/ux500/hash')
-rw-r--r--drivers/crypto/ux500/hash/hash_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c
index cf5508967539..3b8f661d0edf 100644
--- a/drivers/crypto/ux500/hash/hash_core.c
+++ b/drivers/crypto/ux500/hash/hash_core.c
@@ -1961,6 +1961,11 @@ static int ux500_hash_resume(struct device *dev)
1961 1961
1962static SIMPLE_DEV_PM_OPS(ux500_hash_pm, ux500_hash_suspend, ux500_hash_resume); 1962static SIMPLE_DEV_PM_OPS(ux500_hash_pm, ux500_hash_suspend, ux500_hash_resume);
1963 1963
1964static const struct of_device_id ux500_hash_match[] = {
1965 { .compatible = "stericsson,ux500-hash" },
1966 { },
1967};
1968
1964static struct platform_driver hash_driver = { 1969static struct platform_driver hash_driver = {
1965 .probe = ux500_hash_probe, 1970 .probe = ux500_hash_probe,
1966 .remove = ux500_hash_remove, 1971 .remove = ux500_hash_remove,
@@ -1968,6 +1973,7 @@ static struct platform_driver hash_driver = {
1968 .driver = { 1973 .driver = {
1969 .owner = THIS_MODULE, 1974 .owner = THIS_MODULE,
1970 .name = "hash1", 1975 .name = "hash1",
1976 .of_match_table = ux500_hash_match,
1971 .pm = &ux500_hash_pm, 1977 .pm = &ux500_hash_pm,
1972 } 1978 }
1973}; 1979};