hexagon: drop empty and unused free_initrd_mem
diff mbox series

Message ID 1565858133-25852-1-git-send-email-rppt@linux.ibm.com
State Accepted
Commit c7cc8d77316b4386622b2dbd29de800df7b05099
Headers show
Series
  • hexagon: drop empty and unused free_initrd_mem
Related show

Commit Message

Mike Rapoport Aug. 15, 2019, 8:35 a.m. UTC
hexagon never reserves or initializes initrd and the only mention of it is
the empty free_initrd_mem() function.

As we have a generic implementation of free_initrd_mem(), there is no need
to define an empty stub for the hexagon implementation and it can be
dropped.

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
---
 arch/hexagon/mm/init.c | 13 -------------
 1 file changed, 13 deletions(-)

Comments

Christoph Hellwig Aug. 15, 2019, 1:27 p.m. UTC | #1
On Thu, Aug 15, 2019 at 11:35:33AM +0300, Mike Rapoport wrote:
> hexagon never reserves or initializes initrd and the only mention of it is
> the empty free_initrd_mem() function.
> 
> As we have a generic implementation of free_initrd_mem(), there is no need
> to define an empty stub for the hexagon implementation and it can be
> dropped.

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>

Patch
diff mbox series

diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c
index f1f6ebd..c961773 100644
--- a/arch/hexagon/mm/init.c
+++ b/arch/hexagon/mm/init.c
@@ -71,19 +71,6 @@  void __init mem_init(void)
 	init_mm.context.ptbase = __pa(init_mm.pgd);
 }
 
-/*
- * free_initrd_mem - frees...  initrd memory.
- * @start - start of init memory
- * @end - end of init memory
- *
- * Apparently has to be passed the address of the initrd memory.
- *
- * Wrapped by #ifdef CONFIG_BLKDEV_INITRD
- */
-void free_initrd_mem(unsigned long start, unsigned long end)
-{
-}
-
 void sync_icache_dcache(pte_t pte)
 {
 	unsigned long addr;