summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2014-12-02 18:11:58 +0100
committerSebastian Reichel <sre@kernel.org>2014-12-03 20:38:30 +0100
commitb81180b3fd4814af0459a5b6aeb1ee188fea98dc (patch)
tree8d295046d6cf7b40c702fb4a54d5ec4a6626fcf1 /drivers/power
parent99a79565e6db676bca8c7aeddd9fec44e730965e (diff)
power: reset: adjust priority of simple syscon reboot driver
Currently, all restart handler use the priority 128, including watchdogs. Probably most SoC have a watchdog, and some of them register it also as a restart handler. But if a SoC specifies a dedicated reboot capability using this syscon driver, this is usually the preferred reboot method. Hence, raise the priority of this driver to 192. Signed-off-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/reset/syscon-reboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/reset/syscon-reboot.c b/drivers/power/reset/syscon-reboot.c
index 815b901822cf..c4049f45663f 100644
--- a/drivers/power/reset/syscon-reboot.c
+++ b/drivers/power/reset/syscon-reboot.c
@@ -68,7 +68,7 @@ static int syscon_reboot_probe(struct platform_device *pdev)
return -EINVAL;
ctx->restart_handler.notifier_call = syscon_restart_handle;
- ctx->restart_handler.priority = 128;
+ ctx->restart_handler.priority = 192;
err = register_restart_handler(&ctx->restart_handler);
if (err)
dev_err(dev, "can't register restart notifier (err=%d)\n", err);