diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-05-11 17:17:34 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-14 08:56:05 -0700 |
commit | 8cf5aff89e5991aa4bec903b6dbab7d248047d98 (patch) | |
tree | 7f1b2baa5a4ac7d69c80872b0ba9b2f5033cbe41 /drivers/staging/android/persistent_ram.h | |
parent | staging: android: persistent_ram: Introduce persistent_ram_post_init() (diff) | |
download | linux-dev-8cf5aff89e5991aa4bec903b6dbab7d248047d98.tar.xz linux-dev-8cf5aff89e5991aa4bec903b6dbab7d248047d98.zip |
staging: android: persistent_ram: Introduce persistent_ram_new()
The routine just creates a persistent ram zone at a specified address.
For persistent_ram_init_ringbuffer() we'd need to add a
'struct persistent_ram' to the global list, and associate it with a
device. We don't need all this complexity in pstore_ram, so we introduce
the simple function.
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android/persistent_ram.h')
-rw-r--r-- | drivers/staging/android/persistent_ram.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/android/persistent_ram.h b/drivers/staging/android/persistent_ram.h index 563535547d8d..8154d15befa7 100644 --- a/drivers/staging/android/persistent_ram.h +++ b/drivers/staging/android/persistent_ram.h @@ -19,6 +19,7 @@ #include <linux/kernel.h> #include <linux/list.h> #include <linux/types.h> +#include <linux/init.h> struct persistent_ram_buffer; @@ -62,6 +63,9 @@ struct persistent_ram_zone { int persistent_ram_early_init(struct persistent_ram *ram); +struct persistent_ram_zone * __init persistent_ram_new(phys_addr_t start, + size_t size, + bool ecc); struct persistent_ram_zone *persistent_ram_init_ringbuffer(struct device *dev, bool ecc); |