You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/08/10 23:08:52 UTC

[incubator-nuttx] 04/04: power/supply: Call regulator_rpmsg_server_init in drivers_initialize

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit d8cd4d3e48b4ffb2ed6226cd84834e40cf31835f
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Aug 10 09:10:28 2022 +0800

    power/supply: Call regulator_rpmsg_server_init in drivers_initialize
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 drivers/drivers_initialize.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/drivers_initialize.c b/drivers/drivers_initialize.c
index 0921be891a..334d3ecf5c 100644
--- a/drivers/drivers_initialize.c
+++ b/drivers/drivers_initialize.c
@@ -32,6 +32,7 @@
 #include <nuttx/net/telnet.h>
 #include <nuttx/note/note_driver.h>
 #include <nuttx/power/pm.h>
+#include <nuttx/power/regulator.h>
 #include <nuttx/sensors/sensor.h>
 #include <nuttx/serial/pty.h>
 #include <nuttx/syslog/syslog.h>
@@ -88,6 +89,10 @@ void drivers_initialize(void)
   clk_rpmsg_server_initialize();
 #endif
 
+#if defined(CONFIG_REGULATOR_RPMSG)
+  regulator_rpmsg_server_init();
+#endif
+
   /* Initialize the serial device driver */
 
 #ifdef CONFIG_RPMSG_UART