summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2026-05-13 15:44:12 -0700
committerAnup Patel <anup@brainfault.org>2026-05-22 10:31:41 +0530
commit547a5bbda7c3ec0096a6c87809851f8c2df047d1 (patch)
tree132ac4e2b8114362d738d57f25edc82d32ca319e
parente92c8fd0836eaaea8e2e0126bd09ac16c24beee0 (diff)
downloadopensbi-547a5bbda7c3ec0096a6c87809851f8c2df047d1.tar.gz
opensbi-547a5bbda7c3ec0096a6c87809851f8c2df047d1.zip
lib: utils/reset: Remove unused match data
Some drivers inherited FDT match data from the GPIO/syscon reset drivers, but do not use it for anything. Remove it to avoid confusion. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260513224414.1078791-1-samuel.holland@sifive.com Signed-off-by: Anup Patel <anup@brainfault.org>
-rw-r--r--lib/utils/reset/fdt_reset_sg2042_hwmon_mcu.c2
-rw-r--r--lib/utils/reset/fdt_reset_spacemit_p1.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/reset/fdt_reset_sg2042_hwmon_mcu.c b/lib/utils/reset/fdt_reset_sg2042_hwmon_mcu.c
index 94ac4162..bb180268 100644
--- a/lib/utils/reset/fdt_reset_sg2042_hwmon_mcu.c
+++ b/lib/utils/reset/fdt_reset_sg2042_hwmon_mcu.c
@@ -104,7 +104,7 @@ static int sg2042_mcu_reset_init(const void *fdt, int nodeoff,
}
static const struct fdt_match sg2042_mcu_reset_match[] = {
- { .compatible = "sophgo,sg2042-hwmon-mcu", .data = (void *)true},
+ { .compatible = "sophgo,sg2042-hwmon-mcu" },
{ },
};
diff --git a/lib/utils/reset/fdt_reset_spacemit_p1.c b/lib/utils/reset/fdt_reset_spacemit_p1.c
index 5312e741..d153f68b 100644
--- a/lib/utils/reset/fdt_reset_spacemit_p1.c
+++ b/lib/utils/reset/fdt_reset_spacemit_p1.c
@@ -102,7 +102,7 @@ static int p1_reset_init(const void *fdt, int nodeoff,
}
static const struct fdt_match p1_reset_match[] = {
- { .compatible = "spacemit,p1", .data = (void *)true },
+ { .compatible = "spacemit,p1" },
{ },
};