diff options
| author | Samuel Holland <[email protected]> | 2024-11-11 14:02:53 -0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-11-28 17:48:17 +0530 |
| commit | 6d9ad492dbfdda00add7ff15a8599736f46d040a (patch) | |
| tree | 46b9f4122d3efaea86438c34499e9d5294fab0df /lib/utils/reset/fdt_reset_gpio.c | |
| parent | 1f8db2f18ffb4babb27c2070419b7100f998c7f4 (diff) | |
lib: utils/reset: Use fdt_driver for initialization
The reset driver subsystem does not need any extra data, so it can use
`struct fdt_driver` directly. The generic fdt_reset_init() performs a
best-effort initialization of all matching DT nodes. Platform-specific
logic expects exactly one DT node to match a single driver. This is
accomplished by using fdt_driver_init_one() with a local list containing
that one driver.
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/reset/fdt_reset_gpio.c')
| -rw-r--r-- | lib/utils/reset/fdt_reset_gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/reset/fdt_reset_gpio.c b/lib/utils/reset/fdt_reset_gpio.c index de81e2eb..cf751254 100644 --- a/lib/utils/reset/fdt_reset_gpio.c +++ b/lib/utils/reset/fdt_reset_gpio.c @@ -153,7 +153,7 @@ static const struct fdt_match gpio_poweroff_match[] = { { }, }; -struct fdt_reset fdt_poweroff_gpio = { +const struct fdt_driver fdt_poweroff_gpio = { .match_table = gpio_poweroff_match, .init = gpio_reset_init, }; @@ -163,7 +163,7 @@ static const struct fdt_match gpio_reset_match[] = { { }, }; -struct fdt_reset fdt_reset_gpio = { +const struct fdt_driver fdt_reset_gpio = { .match_table = gpio_reset_match, .init = gpio_reset_init, }; |
