diff mbox series

[2/3] regulator: stm32-pwr: add support of correct compatible

Message ID 20240425094829.2.I04ec53442753147c35efad1307b6ec133f53b471@changeid (mailing list archive)
State Superseded
Headers show
Series ARM: st: use a correct pwr compatible for stm32mp15 | expand

Commit Message

Patrick Delaunay April 25, 2024, 7:48 a.m. UTC
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 <patrick.delaunay@foss.st.com>
---

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

Patch

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", },
 	{},
 };