]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - include/linux/acpi.h
ACPI / PM: Fix build problems for !CONFIG_ACPI related to NVS rework
[mv-sheeva.git] / include / linux / acpi.h
index fa7ed6a983d0b2bbd4367c053eb6b77b0deb5e22..eb176bb1b15b722f8c1f78b1650f38302e85a60f 100644 (file)
@@ -254,15 +254,6 @@ void __init acpi_old_suspend_ordering(void);
 void __init acpi_nvs_nosave(void);
 #endif /* CONFIG_PM_SLEEP */
 
-#ifdef CONFIG_ACPI_SLEEP
-int suspend_nvs_register(unsigned long start, unsigned long size);
-#else
-static inline int suspend_nvs_register(unsigned long a, unsigned long b)
-{
-       return 0;
-}
-#endif
-
 struct acpi_osc_context {
        char *uuid_str; /* uuid string */
        int rev;
@@ -361,4 +352,14 @@ static inline int acpi_table_parse(char *id,
        return -1;
 }
 #endif /* !CONFIG_ACPI */
+
+#ifdef CONFIG_ACPI_SLEEP
+int suspend_nvs_register(unsigned long start, unsigned long size);
+#else
+static inline int suspend_nvs_register(unsigned long a, unsigned long b)
+{
+       return 0;
+}
+#endif
+
 #endif /*_LINUX_ACPI_H*/