mm, memory_hotplug: update a comment in unregister_memory()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 28 Jan 2020 09:50:05 +0000 (10:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 15:43:25 +0000 (16:43 +0100)
commit 16df1456aa858a86f398dbc7d27649eb6662b0cc upstream.

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>
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/memory.c

index b384f01..119b076 100644 (file)
@@ -743,7 +743,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);
 }