diff options
Diffstat (limited to 'drivers/misc/starfive-pwrseq.c')
-rw-r--r-- | drivers/misc/starfive-pwrseq.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/misc/starfive-pwrseq.c b/drivers/misc/starfive-pwrseq.c index 6236547bc5..794a67c40e 100644 --- a/drivers/misc/starfive-pwrseq.c +++ b/drivers/misc/starfive-pwrseq.c @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2021 Ahmad Fatoum, Pengutronix */ @@ -13,7 +13,7 @@ struct starfive_pwrseq { const char **names; }; -static int starfive_pwrseq_probe(struct device_d *dev) +static int starfive_pwrseq_probe(struct device *dev) { int ret; @@ -21,7 +21,7 @@ static int starfive_pwrseq_probe(struct device_d *dev) if (ret) return ret; - return of_platform_populate(dev->device_node, NULL, dev); + return of_platform_populate(dev->of_node, NULL, dev); } static struct of_device_id starfive_pwrseq_dt_ids[] = { @@ -36,8 +36,9 @@ static struct of_device_id starfive_pwrseq_dt_ids[] = { { .compatible = "starfive,spi2ahb" }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, starfive_pwrseq_dt_ids); -static struct driver_d starfive_pwrseq_driver = { +static struct driver starfive_pwrseq_driver = { .name = "starfive_pwrseq", .probe = starfive_pwrseq_probe, .of_compatible = starfive_pwrseq_dt_ids, |