forked from Mirrors/opensbi
lib: utils/regmap: Use fdt_driver for initialization
The regmap driver subsystem does not need any extra data, so it can use `struct fdt_driver` directly. It always initializes the driver for a specific DT node. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
5fa510c5f6
commit
1f8db2f18f
@@ -263,7 +263,7 @@ static const struct fdt_match regmap_syscon_match[] = {
|
||||
{ },
|
||||
};
|
||||
|
||||
struct fdt_regmap fdt_regmap_syscon = {
|
||||
const struct fdt_driver fdt_regmap_syscon = {
|
||||
.match_table = regmap_syscon_match,
|
||||
.init = regmap_syscon_init,
|
||||
};
|
||||
|
Reference in New Issue
Block a user