lib/sw_apps/zynqmp_pmufw/src/pm_power.c
static s32 PmPowerInit(PmNode* const powerNode)
{
	s32 status = XST_SUCCESS;

	if (PM_PWR_STATE_OFF == powerNode->currState) {
		goto done;
	}
	if (NULL != powerNode->parent) {
		status = PmPowerRequestParent(powerNode);
		if (XST_SUCCESS != status) {
			goto done;
		}
	}
	if (NULL != powerNode->clocks) {
		status = PmClockRequest(powerNode);
	}

done:
	return status;
}
/**
 * PmPowerInit() - Initialize power node
 * @powerNode	Power node to initialize
 *
 * @return	Status of initializing the node
 */
Initialize power node
@powerNode   Power node to initialize

@return      Status of initializing the node
Initialize power node @powerNode Power node to initialize @return Status of initializing the node
static s32 PmPowerInit(PmNode* const powerNode)
{
	s32 status = XST_SUCCESS;
	if (PM_PWR_STATE_OFF == powerNode->currState) {
		goto done;
	}
	if (NULL != powerNode->parent) {
		status = PmPowerRequestParent(powerNode);
		if (XST_SUCCESS != status) {
			goto done;
		}
	}
	if (NULL != powerNode->clocks) {
		status = PmClockRequest(powerNode);
	}
done:
	return status;
}
static s32 PmPowerInit ( PmNode * const powerNode ) { s32 status = XST_SUCCESS ; if ( PM_PWR_STATE_OFF == powerNode -> currState ) { goto done ; } if ( NULL != powerNode -> parent ) { status = PmPowerRequestParent ( powerNode ) ; if ( XST_SUCCESS != status ) { goto done ; } } if ( NULL != powerNode -> clocks ) { status = PmClockRequest ( powerNode ) ; } done : return status ; }
PmPowerInit() - Initialize power node
 @powerNode   Power node to initialize
PmPowerInit () - Initialize power node @powerNode Power node to initialize