arm: make memory power routines conform to current generic API
The various routines to change memory power state used
in physical memory hotplug and hotremove used to take
a start pfn and a number of pages and return 1 for success
and 0 for failure.
The generic API these are called from now takes a start address
and size and returns a byte count of memory powered on or
off, so the ARM and platform specific routines should as well.
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-msm8960.c b/arch/arm/mach-msm/board-msm8960.c
index 145459b..240b004 100644
--- a/arch/arm/mach-msm/board-msm8960.c
+++ b/arch/arm/mach-msm/board-msm8960.c
@@ -844,10 +844,10 @@
msm_reserve();
}
-static int msm8960_change_memory_power(unsigned long start_pfn,
- unsigned long nr_pages, int change_type)
+static int msm8960_change_memory_power(u64 start, u64 size,
+ int change_type)
{
- return 1;
+ return size;
}
#ifdef CONFIG_MSM_CAMERA