diff options
Diffstat (limited to 'drivers/hw_random/starfive-vic-rng.c')
-rw-r--r-- | drivers/hw_random/starfive-vic-rng.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/hw_random/starfive-vic-rng.c b/drivers/hw_random/starfive-vic-rng.c index f7b7585884..329e845197 100644 --- a/drivers/hw_random/starfive-vic-rng.c +++ b/drivers/hw_random/starfive-vic-rng.c @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0-only /* * COPYRIGHT 2020 Shanghai StarFive Technology Co., Ltd. */ @@ -72,7 +72,7 @@ #define to_vic_rng(p) container_of(p, struct vic_rng, rng) struct vic_rng { - struct device_d *dev; + struct device *dev; void __iomem *base; struct hwrng rng; }; @@ -170,7 +170,7 @@ static int vic_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) return max; } -static int vic_rng_probe(struct device_d *dev) +static int vic_rng_probe(struct device *dev) { struct vic_rng *hrng; struct resource *res; @@ -195,8 +195,9 @@ static const struct of_device_id vic_rng_dt_ids[] = { { .compatible = "starfive,vic-rng" }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, vic_rng_dt_ids); -static struct driver_d vic_rng_driver = { +static struct driver vic_rng_driver = { .name = "vic-rng", .probe = vic_rng_probe, .of_compatible = vic_rng_dt_ids, |