rk3168_86v: modify shutdown error
authorhjc <hjc@rock-chips.com>
Mon, 11 Mar 2013 09:51:27 +0000 (17:51 +0800)
committerhjc <hjc@rock-chips.com>
Mon, 11 Mar 2013 09:51:27 +0000 (17:51 +0800)
arch/arm/mach-rk30/board-rk3168-86v.c

index 75c95f664cccf71df97e892eb1f69c509adcfa95..d311c01dc556910b38827e5eaa8f083e1f89f307 100755 (executable)
@@ -1800,12 +1800,12 @@ static void rk30_pm_power_off(void)
 #if defined(CONFIG_REGULATOR_ACT8846)
        if (pmic_is_tps65910()) {
                printk("enter dcdet===========\n");
-               if((gpio_get_value (RK30_PIN0_PB2) == GPIO_LOW)||(gpio_get_value (RK30_PIN0_PA7) == GPIO_HIGH))
+               if(gpio_get_value (RK30_PIN0_PB2) == GPIO_LOW)
                {
                        printk("enter restart===========\n");
                        arm_pm_restart(0, NULL);
                }
-               //act8931_device_shutdown();
+               tps65910_device_shutdown();
        }
 #endif
        while (1);