sh: fix kexec by removing check for old kexec-tools
authorMagnus Damm <damm@opensource.se>
Mon, 26 Oct 2009 10:30:48 +0000 (10:30 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 26 Oct 2009 10:45:45 +0000 (19:45 +0900)
This unbreaks kexec support. Without this fix all
cases of kexec fails since __pa() does not behave
like PHYSADDR(). The downside is that we also kill
the code blocking users running old kexec-tools.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/machine_kexec.c

index de7cf5477d3f62e7c840d3fcca03040b165cdc84..76f280223ebd1d74abc9493cd83b9e63e3bfca3b 100644 (file)
@@ -46,12 +46,6 @@ void machine_crash_shutdown(struct pt_regs *regs)
  */
 int machine_kexec_prepare(struct kimage *image)
 {
-       /* older versions of kexec-tools are passing
-        * the zImage entry point as a virtual address.
-        */
-       if (image->start != __pa(image->start))
-               return -EINVAL; /* upgrade your kexec-tools */
-
        return 0;
 }