/* This function is used from pm.h to shut down the system by resetting all regulators in turn and then disable regulator LDO D (main power).  */
void u300_pm_poweroff(void)
/* This function is used from pm.h to shut down the system by resetting all regulators in turn and then disable regulator LDO D (main power).  */
void u300_pm_poweroff(void)
{
	sigset_t old, all;
	sigfillset(&all);
	if (!sigprocmask(SIG_BLOCK, &all, &old)) {
		if (main_power_15)
			regulator_disable(main_power_15);
		else
			pr_err("regulator not available to shut down system\n");
		(void) sigprocmask(SIG_SETMASK, &old, NULL);
	}
	return;
}