mm, memory_hotplug: update a comment in unregister_memory()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 19 Dec 2018 19:19:25 +0000 (22:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Dec 2018 15:33:18 +0000 (16:33 +0100)
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>
drivers/base/memory.c

index 122fa7263161dd31980b9d112c882c37b8d3214c..ea35b3dc14420961420544ac85ad24a2f191a8bc 100644 (file)
@@ -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);
 }