Skip to content

Commit

Permalink
ARC: RIP arc_{get|set}_core_freq() clk API
Browse files Browse the repository at this point in the history
There are no more users of this - so RIP!

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
[vgupta: update changelog]
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
  • Loading branch information
Alexey Brodkin authored and Vineet Gupta committed May 9, 2016
1 parent 20c7dbb commit 6e9318d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 51 deletions.
22 changes: 0 additions & 22 deletions arch/arc/include/asm/clk.h

This file was deleted.

2 changes: 1 addition & 1 deletion arch/arc/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'

obj-y := arcksyms.o setup.o irq.o time.o reset.o ptrace.o process.o devtree.o
obj-y += signal.o traps.o sys.o troubleshoot.o stacktrace.o disasm.o clk.o
obj-y += signal.o traps.o sys.o troubleshoot.o stacktrace.o disasm.o
obj-$(CONFIG_ISA_ARCOMPACT) += entry-compact.o intc-compact.o
obj-$(CONFIG_ISA_ARCV2) += entry-arcv2.o intc-arcv2.o
obj-$(CONFIG_PCI) += pcibios.o
Expand Down
21 changes: 0 additions & 21 deletions arch/arc/kernel/clk.c

This file was deleted.

7 changes: 0 additions & 7 deletions arch/arc/kernel/devtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <linux/memblock.h>
#include <linux/of.h>
#include <linux/of_fdt.h>
#include <asm/clk.h>
#include <asm/mach_desc.h>

#ifdef CONFIG_SERIAL_EARLYCON
Expand Down Expand Up @@ -63,8 +62,6 @@ const struct machine_desc * __init setup_machine_fdt(void *dt)
{
const struct machine_desc *mdesc;
unsigned long dt_root;
const void *clk;
int len;

if (!early_init_dt_scan(dt))
return NULL;
Expand All @@ -74,10 +71,6 @@ const struct machine_desc * __init setup_machine_fdt(void *dt)
machine_halt();

dt_root = of_get_flat_dt_root();
clk = of_get_flat_dt_prop(dt_root, "clock-frequency", &len);
if (clk)
arc_set_core_freq(of_read_ulong(clk, len/4));

arc_set_early_base_baud(dt_root);

return mdesc;
Expand Down

0 comments on commit 6e9318d

Please sign in to comment.