summaryrefslogtreecommitdiffstats
path: root/drivers/base/memory.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-12-19 22:19:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-20 16:33:18 +0100
commit16df1456aa858a86f398dbc7d27649eb6662b0cc (patch)
tree3767b917ee399a2d670a247513710986001beb1c /drivers/base/memory.c
parentc0b8a8709ebe0f72523a1e76f30a1bde821c060c (diff)
downloadlinux-16df1456aa858a86f398dbc7d27649eb6662b0cc.tar.bz2
mm, memory_hotplug: update a comment in unregister_memory()
The remove_memory_block() function was renamed to in commit cc292b0b4302 ("drivers/base/memory.c: rename remove_memory_block() to remove_memory_section()"). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/memory.c')
-rw-r--r--drivers/base/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index 122fa7263161..ea35b3dc1442 100644
--- a/drivers/base/memory.c
+++ b/drivers/base/memory.c
@@ -732,7 +732,7 @@ unregister_memory(struct memory_block *memory)
{
BUG_ON(memory->dev.bus != &memory_subsys);
- /* drop the ref. we got in remove_memory_block() */
+ /* drop the ref. we got in remove_memory_section() */
put_device(&memory->dev);
device_unregister(&memory->dev);
}