Skip to content

Commit 7b65170

Browse files
Noltariherbertx
authored andcommitted
hwrng: bcm63xx - add device tree support
Adds device tree support for BCM6368, which seems to be the only BCM63xx with bcm63xx-rng support. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 3947b33 commit 7b65170

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/char/hw_random/bcm63xx-rng.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,17 @@ static int bcm63xx_rng_probe(struct platform_device *pdev)
130130
return 0;
131131
}
132132

133+
static const struct of_device_id bcm63xx_rng_of_match[] = {
134+
{ .compatible = "brcm,bcm6368-rng", },
135+
{},
136+
};
137+
MODULE_DEVICE_TABLE(of, bcm63xx_rng_of_match);
138+
133139
static struct platform_driver bcm63xx_rng_driver = {
134140
.probe = bcm63xx_rng_probe,
135141
.driver = {
136142
.name = "bcm63xx-rng",
143+
.of_match_table = bcm63xx_rng_of_match,
137144
},
138145
};
139146

0 commit comments

Comments
 (0)