2024-04-25 07:49:44

by Patrick Delaunay

[permalink] [raw]
Subject: [PATCH 2/3] regulator: stm32-pwr: add support of correct compatible

Remove the unexpected comma in the compatible "st,stm32mp1,pwr-reg",
and support the new compatible "st,stm32mp1-pwr-reg".
The old compatible is keept for compatibility with old device trees.

Signed-off-by: Patrick Delaunay <[email protected]>
---

drivers/regulator/stm32-pwr.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/stm32-pwr.c b/drivers/regulator/stm32-pwr.c
index 85b0102fb9b1..f6a761167726 100644
--- a/drivers/regulator/stm32-pwr.c
+++ b/drivers/regulator/stm32-pwr.c
@@ -165,6 +165,7 @@ static int stm32_pwr_regulator_probe(struct platform_device *pdev)
}

static const struct of_device_id __maybe_unused stm32_pwr_of_match[] = {
+ { .compatible = "st,stm32mp1-pwr-reg", },
{ .compatible = "st,stm32mp1,pwr-reg", },
{},
};
--
2.25.1