]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ARC: RIP arc_{get|set}_core_freq() clk API
authorAlexey Brodkin <abrodkin@synopsys.com>
Mon, 1 Feb 2016 14:30:17 +0000 (17:30 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 9 May 2016 04:02:31 +0000 (09:32 +0530)
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>
arch/arc/include/asm/clk.h [deleted file]
arch/arc/kernel/Makefile
arch/arc/kernel/clk.c [deleted file]
arch/arc/kernel/devtree.c

diff --git a/arch/arc/include/asm/clk.h b/arch/arc/include/asm/clk.h
deleted file mode 100644 (file)
index bf9d29f..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-#ifndef _ASM_ARC_CLK_H
-#define _ASM_ARC_CLK_H
-
-/* Although we can't really hide core_freq, the accessor is still better way */
-extern unsigned long core_freq;
-
-static inline unsigned long arc_get_core_freq(void)
-{
-       return core_freq;
-}
-
-extern int arc_set_core_freq(unsigned long);
-
-#endif
index 1bc2036b19d754c00beee3187abd6a3ba013d099..cfcdedf52ff8baa1ebbc58c168e386884cd2b534 100644 (file)
@@ -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
diff --git a/arch/arc/kernel/clk.c b/arch/arc/kernel/clk.c
deleted file mode 100644 (file)
index 10c7b0b..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-#include <asm/clk.h>
-
-unsigned long core_freq = 80000000;
-
-/*
- * As of now we default to device-tree provided clock
- * In future we can determine this in early boot
- */
-int arc_set_core_freq(unsigned long freq)
-{
-       core_freq = freq;
-       return 0;
-}
index fecbc96df828260b7fc155353e5033c74636889b..f1e07c2344f84cbd6fb351ad65e9a542fc8f1b4e 100644 (file)
@@ -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
@@ -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;
@@ -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;