@@ -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 reboot_mode, const char *cmd)
{
struct xgene_reboot_context *ctx = xgene_restart_ctx;
unsigned long timeout;
@@ -73,8 +73,7 @@ static int xgene_reboot_probe(struct platform_device *pdev)
return -ENODEV;
}
- if (of_property_read_u32(pdev->dev.of_node, "mask", &ctx->mask))
- ctx->mask = 0xFFFFFFFF;
+ ctx->mask = 0x1;
ctx->pdev = pdev;
arm_pm_restart = xgene_restart;
Remove the use of the mask attribute from original reboot driver. The use of the mask attribute provided unneeded complexity and security risk. Also fix minor compilation warning. Signed-off-by: Feng Kan <fkan@apm.com> --- drivers/power/reset/xgene-reboot.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)