]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/arm/include/asm/suspend.h
ARM: pm: allow suspend finisher to return error codes
[mv-sheeva.git] / arch / arm / include / asm / suspend.h
index f8db9d096bc70d82d511a426d2f151d250a7421c..b0e4e1a0231870c45d14bea0a9178d701737b673 100644 (file)
@@ -10,12 +10,13 @@ extern void cpu_resume(void);
  * Hide the first two arguments to __cpu_suspend - these are an implementation
  * detail which platform code shouldn't have to know about.
  */
-static inline void cpu_suspend(unsigned long arg, void (*fn)(unsigned long))
+static inline int cpu_suspend(unsigned long arg, int (*fn)(unsigned long))
 {
-       extern void __cpu_suspend(int, long, unsigned long,
-                                 void (*)(unsigned long));
-       __cpu_suspend(0, PHYS_OFFSET - PAGE_OFFSET, arg, fn);
+       extern int __cpu_suspend(int, long, unsigned long,
+                                int (*)(unsigned long));
+       int ret = __cpu_suspend(0, PHYS_OFFSET - PAGE_OFFSET, arg, fn);
        flush_tlb_all();
+       return ret;
 }
 
 #endif