memory hotplug: use macro to switch between section and pfn
authorSheng Yong <shengyong1@huawei.com>
Tue, 14 Apr 2015 22:44:54 +0000 (15:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Apr 2015 23:49:00 +0000 (16:49 -0700)
commit19c07d5e0414261bd7ec3d8419dd26f468ef69d9
tree51cf67b5ebd9d96bfe2514fe128576ecca257581
parent1575e68b3c1111aca9779ecbdb106a4aa563f01f
memory hotplug: use macro to switch between section and pfn

Use macro section_nr_to_pfn() to switch between section and pfn, instead
of open-coding it.  No semantic changes.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/base/memory.c
mm/memory_hotplug.c