projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c6b5d
)
drivers/base/memory.c: rename remove_memory_block() to remove_memory_section()
author
Seth Jennings
<
[email protected]
>
Thu, 14 Jan 2016 23:20:24 +0000
(15:20 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 15 Jan 2016 00:00:49 +0000
(16:00 -0800)
The function removes a section, not a block. Rename to reflect actual
functionality.
Signed-off-by: Seth Jennings <
[email protected]
>
Cc: Andrew Banman <
[email protected]
>
Cc: Daniel J Blueman <
[email protected]
>
Cc: Yinghai Lu <
[email protected]
>
Cc: Greg KH <
[email protected]
>
Cc: Russ Anderson <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/base/memory.c
patch
|
blob
|
history
diff --git
a/drivers/base/memory.c
b/drivers/base/memory.c
index 17173f655f89db2a92ba24d6b22724b2c2496666..6d7b14c2798e120ca32b1351338fb52acdbce604 100644
(file)
--- a/
drivers/base/memory.c
+++ b/
drivers/base/memory.c
@@
-692,7
+692,7
@@
unregister_memory(struct memory_block *memory)
device_unregister(&memory->dev);
}
-static int remove_memory_
block
(unsigned long node_id,
+static int remove_memory_
section
(unsigned long node_id,
struct mem_section *section, int phys_device)
{
struct memory_block *mem;
@@
-716,7
+716,7
@@
int unregister_memory_section(struct mem_section *section)
if (!present_section(section))
return -EINVAL;
- return remove_memory_
block
(0, section, 0);
+ return remove_memory_
section
(0, section, 0);
}
#endif /* CONFIG_MEMORY_HOTREMOVE */