init: do not call pm_initialize() in os_start
pm_initialize() should be called in MCU-specific routine not a general
init routine. So pm_initialize() in os_start() should be removed. In
case of arm/s5j, it is called twice, at first in up_pminitialize()
and then os_start(). This should be fixed.
#include <tinyara/mm/shm.h>
#include <tinyara/kmalloc.h>
#include <tinyara/init.h>
-#ifdef CONFIG_PM
-#include <tinyara/pm/pm.h>
-#endif
#include "sched/sched.h"
#include "signal/signal.h"
@@ -538,12 +535,6 @@ void os_start(void)
g_idletcb.cmn.group->tg_flags = GROUP_FLAG_NOCLDWAIT;
#endif
-#ifdef CONFIG_PM
- /* Initialize PM */
-
- pm_initialize();
-#endif
-
/* Bring Up the System ****************************************************/
/* Create initial tasks and bring-up the system */
