]> Pileus Git - ~andy/linux/blobdiff - arch/arm/mach-s3c24xx/s3c2443.c
arm64: perf: fix ARMv8 EVTYPE_MASK to include NSH bit
[~andy/linux] / arch / arm / mach-s3c24xx / s3c2443.c
index 8328cd65bf3d44c4255f3c5eb66382473e4ffdef..b6c71918b25c20d1a6d8bb2dfb2dd29ec1db17a3 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/device.h>
 #include <linux/clk.h>
 #include <linux/io.h>
+#include <linux/reboot.h>
 
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
@@ -59,9 +60,9 @@ static struct device s3c2443_dev = {
        .bus            = &s3c2443_subsys,
 };
 
-void s3c2443_restart(char mode, const char *cmd)
+void s3c2443_restart(enum reboot_mode mode, const char *cmd)
 {
-       if (mode == 's')
+       if (mode == REBOOT_SOFT)
                soft_restart(0);
 
        __raw_writel(S3C2443_SWRST_RESET, S3C2443_SWRST);