]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: base: refactor add_memory_section() to add_memory_block()
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Tue, 20 Aug 2013 17:13:03 +0000 (12:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 18:49:47 +0000 (11:49 -0700)
commit159f7903224ae268dd2347bdae76a01f4151eaa7
tree63b185655cf8f74ecdc3b97a51fe76f85a75fc73
parent700b79acfb021c35c54d928e66e2a89cef0a9263
drivers: base: refactor add_memory_section() to add_memory_block()

Right now memory_dev_init() maintains the memory block pointer
between iterations of add_memory_section().  This is nasty.

This patch refactors add_memory_section() to become add_memory_block().
The refactoring pulls the section scanning out of memory_dev_init()
and simplifies the signature.

Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/memory.c