[PATCH v4 5/7] platform: starfive: drop "compatible" from struct pmic
Nam Cao
namcao at linutronix.de
Mon Feb 5 00:49:00 PST 2024
The member "compatible" of struct pmic is not used. Delete it.
Signed-off-by: Nam Cao <namcao at linutronix.de>
---
platform/generic/starfive/jh7110.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/platform/generic/starfive/jh7110.c b/platform/generic/starfive/jh7110.c
index 1f7cfe2..b0b1e35 100644
--- a/platform/generic/starfive/jh7110.c
+++ b/platform/generic/starfive/jh7110.c
@@ -23,7 +23,6 @@
struct pmic {
struct i2c_adapter *adapter;
u32 dev_addr;
- const char *compatible;
};
struct jh7110 {
@@ -204,7 +203,6 @@ static int pm_reset_init(void *fdt, int nodeoff,
return rc;
pmic_inst.dev_addr = addr;
- pmic_inst.compatible = match->compatible;
i2c_bus = fdt_parent_offset(fdt, nodeoff);
if (i2c_bus < 0)
--
2.39.2
More information about the opensbi
mailing list