mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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: [email protected] Acked-by: Herbert Xu <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
c2dade34ea
commit
4a2e2d0d6b
1 changed files with 6 additions and 0 deletions
|
|
@ -1961,6 +1961,11 @@ static int ux500_hash_resume(struct device *dev)
|
|||
|
||||
static SIMPLE_DEV_PM_OPS(ux500_hash_pm, ux500_hash_suspend, ux500_hash_resume);
|
||||
|
||||
static const struct of_device_id ux500_hash_match[] = {
|
||||
{ .compatible = "stericsson,ux500-hash" },
|
||||
{ },
|
||||
};
|
||||
|
||||
static struct platform_driver hash_driver = {
|
||||
.probe = ux500_hash_probe,
|
||||
.remove = ux500_hash_remove,
|
||||
|
|
@ -1968,6 +1973,7 @@ static struct platform_driver hash_driver = {
|
|||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "hash1",
|
||||
.of_match_table = ux500_hash_match,
|
||||
.pm = &ux500_hash_pm,
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue