]> git.hungrycats.org Git - linux/commitdiff
power/reset: xgene-reset: Fix prototype of xgene_restart()
authorMark Brown <broonie@linaro.org>
Mon, 25 Aug 2014 00:36:29 +0000 (19:36 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:33:44 +0000 (13:33 +0000)
commit d3ed534cca703b2aaeee9277a5b8063ae6eab1d1 upstream.

The xgene-reset driver uses xgene_restart() as arm_pm_restart() but that
function should take an enum reset_type as the first argument rather than
a char. Fix this; the paramter is not referenced in the implementation.

Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/power/reset/xgene-reboot.c

index ecd55f81b9d1eca1a7a6307597dfe7d862f0f892..6b49be6867ab01f174de34cd28759951c61e7a2f 100644 (file)
@@ -40,7 +40,7 @@ struct xgene_reboot_context {
 
 static struct xgene_reboot_context *xgene_restart_ctx;
 
-static void xgene_restart(char str, const char *cmd)
+static void xgene_restart(enum reboot_mode mode, const char *cmd)
 {
        struct xgene_reboot_context *ctx = xgene_restart_ctx;
        unsigned long timeout;