static void rk30_pm_power_off(void)
{
printk(KERN_ERR "rk30_pm_power_off start...\n");
- gpio_direction_output(POWER_ON_PIN, GPIO_LOW);
#if defined(CONFIG_MFD_WM831X)
wm831x_set_bits(Wm831x,WM831X_GPIO_LEVEL,0x0001,0x0000); //set sys_pwr 0
wm831x_device_shutdown(Wm831x);//wm8326 shutdown
printk("enter restart===========\n");
arm_pm_restart(0, NULL);
}
- //act8931_device_shutdown();
+ else
+ {
+ act8846_device_shutdown();
+ }
}
#endif
+ gpio_direction_output(POWER_ON_PIN, GPIO_LOW);
while (1);
}