microblaze: remove unused alloc_maybe_bootmem
authorRob Herring <robh@kernel.org>
Fri, 9 Mar 2018 15:52:55 +0000 (09:52 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 16 Mar 2018 11:51:27 +0000 (12:51 +0100)
alloc_maybe_bootmem is unused, so remove it.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/setup.h
arch/microblaze/mm/init.c

index be84a4d3917fc1c901bc71c6ca44362c28680257..7c968c1d1729ed00233a716534843175a3c2bc27 100644 (file)
@@ -44,7 +44,6 @@ void machine_shutdown(void);
 void machine_halt(void);
 void machine_power_off(void);
 
-extern void *alloc_maybe_bootmem(size_t size, gfp_t mask);
 extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
 
 # endif /* __ASSEMBLY__ */
index 434639f9a3a6b024b5af2b2319b46376c88c6ada..5bc9c7fbb541ec314011937898bed75491f051e1 100644 (file)
@@ -414,14 +414,6 @@ void __init *early_get_page(void)
 
 #endif /* CONFIG_MMU */
 
-void * __ref alloc_maybe_bootmem(size_t size, gfp_t mask)
-{
-       if (mem_init_done)
-               return kmalloc(size, mask);
-       else
-               return alloc_bootmem(size);
-}
-
 void * __ref zalloc_maybe_bootmem(size_t size, gfp_t mask)
 {
        void *p;