Skip to content

Commit f2739ca

Browse files
robherringsuryasaimadhu
authored andcommitted
x86/of: Kill unused early_init_dt_scan_chosen_arch()
There are no callers for early_init_dt_scan_chosen_arch(), so remove it. Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Frank Rowand <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 6bf8a55 commit f2739ca

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

arch/x86/kernel/devicetree.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ char __initdata cmd_line[COMMAND_LINE_SIZE];
3131

3232
int __initdata of_ioapic;
3333

34-
void __init early_init_dt_scan_chosen_arch(unsigned long node)
35-
{
36-
BUG();
37-
}
38-
3934
void __init early_init_dt_add_memory_arch(u64 base, u64 size)
4035
{
4136
BUG();

include/linux/of_fdt.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ extern int early_init_dt_scan_memory(unsigned long node, const char *uname,
6565
extern int early_init_dt_scan_chosen_stdout(void);
6666
extern void early_init_fdt_scan_reserved_mem(void);
6767
extern void early_init_fdt_reserve_self(void);
68-
extern void __init early_init_dt_scan_chosen_arch(unsigned long node);
6968
extern void early_init_dt_add_memory_arch(u64 base, u64 size);
7069
extern u64 dt_mem_next_cell(int s, const __be32 **cellp);
7170

0 commit comments

Comments
 (0)