mm: remove include/linux/bootmem.h
[linux-2.6-block.git] / arch / alpha / kernel / core_marvel.c
index bdebb8c206f10d99f4ca0d6dd5d6e678c7008398..8a568c4d8e81cedcb5a9c91c93f32f480e4a0294 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/mc146818rtc.h>
 #include <linux/rtc.h>
 #include <linux/module.h>
-#include <linux/bootmem.h>
+#include <linux/memblock.h>
 
 #include <asm/ptrace.h>
 #include <asm/smp.h>
@@ -82,7 +82,7 @@ mk_resource_name(int pe, int port, char *str)
        char *name;
        
        sprintf(tmp, "PCI %s PE %d PORT %d", str, pe, port);
-       name = alloc_bootmem(strlen(tmp) + 1);
+       name = memblock_alloc(strlen(tmp) + 1, 0);
        strcpy(name, tmp);
 
        return name;
@@ -117,7 +117,7 @@ alloc_io7(unsigned int pe)
                return NULL;
        }
 
-       io7 = alloc_bootmem(sizeof(*io7));
+       io7 = memblock_alloc(sizeof(*io7), 0);
        io7->pe = pe;
        raw_spin_lock_init(&io7->irq_lock);