Skip to contentSkip to conversation

power/reset: xgene-reset: Fix prototype of xgene_restart()

PATCH New Mark Brown 1 participant 1 message Sep 17, 2014 System reset/shutdown drivers

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 power/reset: xgene-reset: Fix prototype of xgene_restart()

From: Mark Brown <[email protected]>

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.

---
 drivers/power/reset/xgene-reboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/reset/xgene-reboot.c +1 -1
index ecd55f8..6b49be6 100644
@@ -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;
Signature · 1 line
2.1.0