Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Remove plat_timer_setup()

The plat_timer_setup() function is entirely unused - nothing calls it,
and no platforms provide it. Perhaps our dummy implementation was once
useful as an aid in forward porting platforms, but its time has long
since passed so let's remove the dead code.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: trivial@kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/17175/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Paul Burton and committed by
Ralf Baechle
7d630e83 fbdce1da

-14
-14
arch/mips/kernel/time.c
··· 72 72 unsigned int mips_hpt_frequency; 73 73 EXPORT_SYMBOL_GPL(mips_hpt_frequency); 74 74 75 - /* 76 - * This function exists in order to cause an error due to a duplicate 77 - * definition if platform code should have its own implementation. The hook 78 - * to use instead is plat_time_init. plat_time_init does not receive the 79 - * irqaction pointer argument anymore. This is because any function which 80 - * initializes an interrupt timer now takes care of its own request_irq rsp. 81 - * setup_irq calls and each clock_event_device should use its own 82 - * struct irqrequest. 83 - */ 84 - void __init plat_timer_setup(void) 85 - { 86 - BUG(); 87 - } 88 - 89 75 static __init int cpu_has_mfc0_count_bug(void) 90 76 { 91 77 switch (current_cpu_type()) {