diff options
-rw-r--r-- | exynos-gs201-reboot.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/exynos-gs201-reboot.c b/exynos-gs201-reboot.c index 4917058..bb658d0 100644 --- a/exynos-gs201-reboot.c +++ b/exynos-gs201-reboot.c @@ -18,9 +18,6 @@ #include <linux/mfd/samsung/s2mpg12.h> #include <linux/platform_device.h> #include <linux/reboot.h> -#if IS_ENABLED(CONFIG_GS_ACPM) -#include <soc/google/acpm_ipc_ctrl.h> -#endif #include <soc/google/exynos-el3_mon.h> #include "../../bms/google_bms.h" @@ -117,27 +114,6 @@ static int exynos_reboot_handler(struct notifier_block *nb, unsigned long mode, { exynos_reboot_parse(cmd); - if (mode != SYS_POWER_OFF) - return NOTIFY_DONE; - - while (1) { - /* wait for power button release */ - if (!pmic_read_pwrkey_status()) { -#if IS_ENABLED(CONFIG_GS_ACPM) - acpm_prepare_reboot(); -#endif - pr_info("ready to do power off.\n"); - break; - } else { - /* - * if power button is not released, - * wait and check TA again - */ - pr_info("PWR Key is not released.\n"); - } - mdelay(1000); - } - return NOTIFY_DONE; } @@ -148,10 +124,6 @@ static struct notifier_block exynos_reboot_nb = { static int exynos_restart_handler(struct notifier_block *this, unsigned long mode, void *cmd) { -#if IS_ENABLED(CONFIG_GS_ACPM) - acpm_prepare_reboot(); -#endif - pr_info("ready to do restart.\n"); return NOTIFY_DONE; |