summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-05-16 12:27:25 +0100
committerLinus Walleij <linus.walleij@linaro.org>2013-05-27 14:07:58 +0200
commitc2dade34eaa2384f2921b0a29bb8ac43848e0317 (patch)
tree9e10714c0d0003cdf974469139f3a0dd7f7188fa
parent12b1843c1a9e7a26762bd47a62a04d2fedc54466 (diff)
downloadop-kernel-dev-c2dade34eaa2384f2921b0a29bb8ac43848e0317.zip
op-kernel-dev-c2dade34eaa2384f2921b0a29bb8ac43848e0317.tar.gz
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>
-rw-r--r--drivers/crypto/ux500/cryp/cryp_core.c6
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 32f4806..8c2777c 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)
static SIMPLE_DEV_PM_OPS(ux500_cryp_pm, ux500_cryp_suspend, ux500_cryp_resume);
+static const struct of_device_id ux500_cryp_match[] = {
+ { .compatible = "stericsson,ux500-cryp" },
+ { },
+};
+
static struct platform_driver cryp_driver = {
.probe = ux500_cryp_probe,
.remove = ux500_cryp_remove,
@@ -1750,6 +1755,7 @@ static struct platform_driver cryp_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "cryp1",
+ .of_match_table = ux500_cryp_match,
.pm = &ux500_cryp_pm,
}
};
OpenPOWER on IntegriCloud