system/poweroff: Use prototype for board_power_off() from include/nuttx/board.h, not from non-supported power.h header file

This commit is contained in:
Gregory Nutt 2015-07-02 16:26:27 -06:00
parent 28c654c9b1
commit 8f16c5d32d

View File

@ -37,7 +37,7 @@
* Included Files
****************************************************************************/
#include <arch/board/power.h>
#include <nuttx/board.h>
/****************************************************************************
* Public Functions
@ -63,5 +63,10 @@ int poweroff_main(int argc, char *argv[])
*/
board_power_off();
/* If board_power_off function returns, then it was not possible to power-off the
* board due to some constraints.
*/
return 0;
}