diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-05-16 07:27:25 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-05-27 08:07:58 -0400 |
commit | c2dade34eaa2384f2921b0a29bb8ac43848e0317 (patch) | |
tree | 9e10714c0d0003cdf974469139f3a0dd7f7188fa /drivers/crypto | |
parent | 12b1843c1a9e7a26762bd47a62a04d2fedc54466 (diff) |
crypto: ux500/cryp - Enable DT probing of the driver
By providing an OF match table with a suitable compatible string, we
can ensure the ux500-crypt 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')
-rw-r--r-- | drivers/crypto/ux500/cryp/cryp_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c index 32f480622b97..8c2777cf02f6 100644 --- a/drivers/crypto/ux500/cryp/cryp_core.c +++ b/drivers/crypto/ux500/cryp/cryp_core.c | |||
@@ -1743,6 +1743,11 @@ static int ux500_cryp_resume(struct device *dev) | |||
1743 | 1743 | ||
1744 | static SIMPLE_DEV_PM_OPS(ux500_cryp_pm, ux500_cryp_suspend, ux500_cryp_resume); | 1744 | static SIMPLE_DEV_PM_OPS(ux500_cryp_pm, ux500_cryp_suspend, ux500_cryp_resume); |
1745 | 1745 | ||
1746 | static const struct of_device_id ux500_cryp_match[] = { | ||
1747 | { .compatible = "stericsson,ux500-cryp" }, | ||
1748 | { }, | ||
1749 | }; | ||
1750 | |||
1746 | static struct platform_driver cryp_driver = { | 1751 | static struct platform_driver cryp_driver = { |
1747 | .probe = ux500_cryp_probe, | 1752 | .probe = ux500_cryp_probe, |
1748 | .remove = ux500_cryp_remove, | 1753 | .remove = ux500_cryp_remove, |
@@ -1750,6 +1755,7 @@ static struct platform_driver cryp_driver = { | |||
1750 | .driver = { | 1755 | .driver = { |
1751 | .owner = THIS_MODULE, | 1756 | .owner = THIS_MODULE, |
1752 | .name = "cryp1", | 1757 | .name = "cryp1", |
1758 | .of_match_table = ux500_cryp_match, | ||
1753 | .pm = &ux500_cryp_pm, | 1759 | .pm = &ux500_cryp_pm, |
1754 | } | 1760 | } |
1755 | }; | 1761 | }; |