diff options
author | Len Brown <len.brown@intel.com> | 2011-01-12 16:11:46 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-01-12 16:11:46 -0500 |
commit | 4263d9a3ae4d15785897d0543bb59316c84ee605 (patch) | |
tree | e15665d7179d8355079312ac7e6d72d504c9561d | |
parent | eab001bf88f68653e87a7d90124a2241131dbeda (diff) | |
parent | 6fed05c9c9812b5882bc708f4da4fa8d5df2875c (diff) |
Merge branch 'suspend-ioremap-cache' into release
-rw-r--r-- | drivers/acpi/internal.h | 2 | ||||
-rw-r--r-- | include/linux/acpi.h | 19 |
2 files changed, 11 insertions, 10 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index bc428a9607df..b1cc81a0431b 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h | |||
@@ -91,7 +91,7 @@ void suspend_nvs_restore(void); | |||
91 | static inline int acpi_sleep_proc_init(void) { return 0; } | 91 | static inline int acpi_sleep_proc_init(void) { return 0; } |
92 | static inline int suspend_nvs_alloc(void) { return 0; } | 92 | static inline int suspend_nvs_alloc(void) { return 0; } |
93 | static inline void suspend_nvs_free(void) {} | 93 | static inline void suspend_nvs_free(void) {} |
94 | static inline int suspend_nvs_save(void) {} | 94 | static inline int suspend_nvs_save(void) { return 0; } |
95 | static inline void suspend_nvs_restore(void) {} | 95 | static inline void suspend_nvs_restore(void) {} |
96 | #endif | 96 | #endif |
97 | 97 | ||
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index fa7ed6a983d0..eb176bb1b15b 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -254,15 +254,6 @@ void __init acpi_old_suspend_ordering(void); | |||
254 | void __init acpi_nvs_nosave(void); | 254 | void __init acpi_nvs_nosave(void); |
255 | #endif /* CONFIG_PM_SLEEP */ | 255 | #endif /* CONFIG_PM_SLEEP */ |
256 | 256 | ||
257 | #ifdef CONFIG_ACPI_SLEEP | ||
258 | int suspend_nvs_register(unsigned long start, unsigned long size); | ||
259 | #else | ||
260 | static inline int suspend_nvs_register(unsigned long a, unsigned long b) | ||
261 | { | ||
262 | return 0; | ||
263 | } | ||
264 | #endif | ||
265 | |||
266 | struct acpi_osc_context { | 257 | struct acpi_osc_context { |
267 | char *uuid_str; /* uuid string */ | 258 | char *uuid_str; /* uuid string */ |
268 | int rev; | 259 | int rev; |
@@ -361,4 +352,14 @@ static inline int acpi_table_parse(char *id, | |||
361 | return -1; | 352 | return -1; |
362 | } | 353 | } |
363 | #endif /* !CONFIG_ACPI */ | 354 | #endif /* !CONFIG_ACPI */ |
355 | |||
356 | #ifdef CONFIG_ACPI_SLEEP | ||
357 | int suspend_nvs_register(unsigned long start, unsigned long size); | ||
358 | #else | ||
359 | static inline int suspend_nvs_register(unsigned long a, unsigned long b) | ||
360 | { | ||
361 | return 0; | ||
362 | } | ||
363 | #endif | ||
364 | |||
364 | #endif /*_LINUX_ACPI_H*/ | 365 | #endif /*_LINUX_ACPI_H*/ |