diff options
Diffstat (limited to 'drivers/firmware/memmap.c')
-rw-r--r-- | drivers/firmware/memmap.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/drivers/firmware/memmap.c b/drivers/firmware/memmap.c index cc016c615c19..5de3ed29282c 100644 --- a/drivers/firmware/memmap.c +++ b/drivers/firmware/memmap.c | |||
@@ -144,7 +144,9 @@ static struct kobj_type __refdata memmap_ktype = { | |||
144 | * | 144 | * |
145 | * Common implementation of firmware_map_add() and firmware_map_add_early() | 145 | * Common implementation of firmware_map_add() and firmware_map_add_early() |
146 | * which expects a pre-allocated struct firmware_map_entry. | 146 | * which expects a pre-allocated struct firmware_map_entry. |
147 | **/ | 147 | * |
148 | * Return: 0 always | ||
149 | */ | ||
148 | static int firmware_map_add_entry(u64 start, u64 end, | 150 | static int firmware_map_add_entry(u64 start, u64 end, |
149 | const char *type, | 151 | const char *type, |
150 | struct firmware_map_entry *entry) | 152 | struct firmware_map_entry *entry) |
@@ -170,7 +172,7 @@ static int firmware_map_add_entry(u64 start, u64 end, | |||
170 | * @entry: removed entry. | 172 | * @entry: removed entry. |
171 | * | 173 | * |
172 | * The caller must hold map_entries_lock, and release it properly. | 174 | * The caller must hold map_entries_lock, and release it properly. |
173 | **/ | 175 | */ |
174 | static inline void firmware_map_remove_entry(struct firmware_map_entry *entry) | 176 | static inline void firmware_map_remove_entry(struct firmware_map_entry *entry) |
175 | { | 177 | { |
176 | list_del(&entry->list); | 178 | list_del(&entry->list); |
@@ -208,7 +210,7 @@ static inline void remove_sysfs_fw_map_entry(struct firmware_map_entry *entry) | |||
208 | kobject_put(&entry->kobj); | 210 | kobject_put(&entry->kobj); |
209 | } | 211 | } |
210 | 212 | ||
211 | /* | 213 | /** |
212 | * firmware_map_find_entry_in_list() - Search memmap entry in a given list. | 214 | * firmware_map_find_entry_in_list() - Search memmap entry in a given list. |
213 | * @start: Start of the memory range. | 215 | * @start: Start of the memory range. |
214 | * @end: End of the memory range (exclusive). | 216 | * @end: End of the memory range (exclusive). |
@@ -236,7 +238,7 @@ firmware_map_find_entry_in_list(u64 start, u64 end, const char *type, | |||
236 | return NULL; | 238 | return NULL; |
237 | } | 239 | } |
238 | 240 | ||
239 | /* | 241 | /** |
240 | * firmware_map_find_entry() - Search memmap entry in map_entries. | 242 | * firmware_map_find_entry() - Search memmap entry in map_entries. |
241 | * @start: Start of the memory range. | 243 | * @start: Start of the memory range. |
242 | * @end: End of the memory range (exclusive). | 244 | * @end: End of the memory range (exclusive). |
@@ -254,7 +256,7 @@ firmware_map_find_entry(u64 start, u64 end, const char *type) | |||
254 | return firmware_map_find_entry_in_list(start, end, type, &map_entries); | 256 | return firmware_map_find_entry_in_list(start, end, type, &map_entries); |
255 | } | 257 | } |
256 | 258 | ||
257 | /* | 259 | /** |
258 | * firmware_map_find_entry_bootmem() - Search memmap entry in map_entries_bootmem. | 260 | * firmware_map_find_entry_bootmem() - Search memmap entry in map_entries_bootmem. |
259 | * @start: Start of the memory range. | 261 | * @start: Start of the memory range. |
260 | * @end: End of the memory range (exclusive). | 262 | * @end: End of the memory range (exclusive). |
@@ -283,8 +285,8 @@ firmware_map_find_entry_bootmem(u64 start, u64 end, const char *type) | |||
283 | * similar to function firmware_map_add_early(). The only difference is that | 285 | * similar to function firmware_map_add_early(). The only difference is that |
284 | * it will create the syfs entry dynamically. | 286 | * it will create the syfs entry dynamically. |
285 | * | 287 | * |
286 | * Returns 0 on success, or -ENOMEM if no memory could be allocated. | 288 | * Return: 0 on success, or -ENOMEM if no memory could be allocated. |
287 | **/ | 289 | */ |
288 | int __meminit firmware_map_add_hotplug(u64 start, u64 end, const char *type) | 290 | int __meminit firmware_map_add_hotplug(u64 start, u64 end, const char *type) |
289 | { | 291 | { |
290 | struct firmware_map_entry *entry; | 292 | struct firmware_map_entry *entry; |
@@ -325,8 +327,8 @@ int __meminit firmware_map_add_hotplug(u64 start, u64 end, const char *type) | |||
325 | * | 327 | * |
326 | * That function must be called before late_initcall. | 328 | * That function must be called before late_initcall. |
327 | * | 329 | * |
328 | * Returns 0 on success, or -ENOMEM if no memory could be allocated. | 330 | * Return: 0 on success, or -ENOMEM if no memory could be allocated. |
329 | **/ | 331 | */ |
330 | int __init firmware_map_add_early(u64 start, u64 end, const char *type) | 332 | int __init firmware_map_add_early(u64 start, u64 end, const char *type) |
331 | { | 333 | { |
332 | struct firmware_map_entry *entry; | 334 | struct firmware_map_entry *entry; |
@@ -346,8 +348,8 @@ int __init firmware_map_add_early(u64 start, u64 end, const char *type) | |||
346 | * | 348 | * |
347 | * removes a firmware mapping entry. | 349 | * removes a firmware mapping entry. |
348 | * | 350 | * |
349 | * Returns 0 on success, or -EINVAL if no entry. | 351 | * Return: 0 on success, or -EINVAL if no entry. |
350 | **/ | 352 | */ |
351 | int __meminit firmware_map_remove(u64 start, u64 end, const char *type) | 353 | int __meminit firmware_map_remove(u64 start, u64 end, const char *type) |
352 | { | 354 | { |
353 | struct firmware_map_entry *entry; | 355 | struct firmware_map_entry *entry; |