Skip to content

Commit

Permalink
mm/early_ioremap.c: remove redundant early_ioremap_shutdown()
Browse files Browse the repository at this point in the history
early_ioremap_reset() reserved a weak function so that architectures can
provide a specific cleanup.  Now no architectures use it, remove this
redundant function.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Weizhao Ouyang <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
ownia authored and torvalds committed Sep 8, 2021
1 parent 8491502 commit 395519b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions include/asm-generic/early_ioremap.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ extern void *early_memremap_prot(resource_size_t phys_addr,
extern void early_iounmap(void __iomem *addr, unsigned long size);
extern void early_memunmap(void *addr, unsigned long size);

/*
* Weak function called by early_ioremap_reset(). It does nothing, but
* architectures may provide their own version to do any needed cleanups.
*/
extern void early_ioremap_shutdown(void);

#if defined(CONFIG_GENERIC_EARLY_IOREMAP) && defined(CONFIG_MMU)
/* Arch-specific initialization */
extern void early_ioremap_init(void);
Expand Down
5 changes: 0 additions & 5 deletions mm/early_ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,8 @@ pgprot_t __init __weak early_memremap_pgprot_adjust(resource_size_t phys_addr,
return prot;
}

void __init __weak early_ioremap_shutdown(void)
{
}

void __init early_ioremap_reset(void)
{
early_ioremap_shutdown();
after_paging_init = 1;
}

Expand Down

0 comments on commit 395519b

Please sign in to comment.