memblock: drop __memblock_alloc_base()
[linux] / arch / sh / kernel / machine_kexec.c
index b9f9f1a..63d63a3 100644 (file)
@@ -168,7 +168,8 @@ void __init reserve_crashkernel(void)
        crash_size = PAGE_ALIGN(resource_size(&crashk_res));
        if (!crashk_res.start) {
                unsigned long max = memblock_end_of_DRAM() - memory_limit;
-               crashk_res.start = __memblock_alloc_base(crash_size, PAGE_SIZE, max);
+               crashk_res.start = memblock_phys_alloc_range(crash_size,
+                                                            PAGE_SIZE, 0, max);
                if (!crashk_res.start) {
                        pr_err("crashkernel allocation failed\n");
                        goto disable;