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

Patrick Delaunay patrick.delaunay at foss.st.com
Thu Apr 25 00:48:33 PDT 2024


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 at foss.st.com>
---

 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




More information about the linux-arm-kernel mailing list