aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/kernel/reboot.c
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2021-06-04 15:07:37 +0100
committerRussell King (Oracle) <[email protected]>2021-06-13 18:16:48 +0100
commit33f087577ed3a048e65e7b50c92704e2f43bd1f7 (patch)
treed90bd1cb3c4e287c5a472e902432b637eb1d37ef /arch/arm/kernel/reboot.c
parentab6cef1d14475f1af33da99a6774626f73d278b6 (diff)
ARM: 9096/1: Remove arm_pm_restart()
All users of arm_pm_restart() have been converted to use the kernel restart handler. Acked-by: Arnd Bergmann <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Thierry Reding <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'arch/arm/kernel/reboot.c')
-rw-r--r--arch/arm/kernel/reboot.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/kernel/reboot.c b/arch/arm/kernel/reboot.c
index 0ce388f15422..3044fcb8d073 100644
--- a/arch/arm/kernel/reboot.c
+++ b/arch/arm/kernel/reboot.c
@@ -18,7 +18,6 @@ typedef void (*phys_reset_t)(unsigned long, bool);
/*
* Function pointers to optional machine specific functions
*/
-void (*arm_pm_restart)(enum reboot_mode reboot_mode, const char *cmd);
void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off);
@@ -138,10 +137,7 @@ void machine_restart(char *cmd)
local_irq_disable();
smp_send_stop();
- if (arm_pm_restart)
- arm_pm_restart(reboot_mode, cmd);
- else
- do_kernel_restart(cmd);
+ do_kernel_restart(cmd);
/* Give a grace period for failure to restart of 1s */
mdelay(1000);