021-reset-parameters.patch 804 B

12345678910111213141516171819202122232425
  1. --- a/arch/arm/mach-gemini/reset.c
  2. +++ b/arch/arm/mach-gemini/reset.c
  3. @@ -11,10 +11,11 @@
  4. #define __MACH_SYSTEM_H
  5. #include <linux/io.h>
  6. +#include <linux/reboot.h>
  7. #include <mach/hardware.h>
  8. #include <mach/global_reg.h>
  9. -void gemini_restart(char mode, const char *cmd)
  10. +void gemini_restart(enum reboot_mode mode, const char *cmd)
  11. {
  12. __raw_writel(RESET_GLOBAL | RESET_CPU1,
  13. IO_ADDRESS(GEMINI_GLOBAL_BASE) + GLOBAL_RESET);
  14. --- a/arch/arm/mach-gemini/common.h
  15. +++ b/arch/arm/mach-gemini/common.h
  16. @@ -26,6 +26,6 @@ extern int platform_register_pflash(unsi
  17. struct mtd_partition *parts,
  18. unsigned int nr_parts);
  19. -extern void gemini_restart(char mode, const char *cmd);
  20. +extern void gemini_restart(enum reboot_mode mode, const char *cmd);
  21. #endif /* __GEMINI_COMMON_H__ */