diff options
author | Jonas Gorski <jogo@openwrt.org> | 2014-07-08 10:53:24 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-07-30 09:25:05 -0400 |
commit | e86ae9e2e0c3badc74c81f3449b9d59513d8845c (patch) | |
tree | c03dea2f9cc24f0368721bbac3e395d84c7467b6 /arch/mips/bcm63xx | |
parent | 436f302f7b90ce9f1248ff688cbc861ea24372db (diff) |
MIPS: BCM63xx: Remove !RUNTIME_DETECT code for bcmcpu_get_id
Use the same pattern as with get_*_cpu_type() to allow the compiler
to remove code for non enabled SoC types.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: John Crispin <blogic@openwrt.org>
Cc: Maxime Bizon <mbizon@freebox.fr>
Cc: Florian Fainelli <florian@openwrt.org>
Cc: Kevin Cernekee <cernekee@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/7273/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/bcm63xx')
-rw-r--r-- | arch/mips/bcm63xx/cpu.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/mips/bcm63xx/cpu.c b/arch/mips/bcm63xx/cpu.c index fd4e76c00a42..536f64443031 100644 --- a/arch/mips/bcm63xx/cpu.c +++ b/arch/mips/bcm63xx/cpu.c | |||
@@ -24,7 +24,9 @@ EXPORT_SYMBOL(bcm63xx_regs_base); | |||
24 | const int *bcm63xx_irqs; | 24 | const int *bcm63xx_irqs; |
25 | EXPORT_SYMBOL(bcm63xx_irqs); | 25 | EXPORT_SYMBOL(bcm63xx_irqs); |
26 | 26 | ||
27 | static u16 bcm63xx_cpu_id; | 27 | u16 bcm63xx_cpu_id __read_mostly; |
28 | EXPORT_SYMBOL(bcm63xx_cpu_id); | ||
29 | |||
28 | static u8 bcm63xx_cpu_rev; | 30 | static u8 bcm63xx_cpu_rev; |
29 | static unsigned int bcm63xx_cpu_freq; | 31 | static unsigned int bcm63xx_cpu_freq; |
30 | static unsigned int bcm63xx_memory_size; | 32 | static unsigned int bcm63xx_memory_size; |
@@ -97,13 +99,6 @@ static const int bcm6368_irqs[] = { | |||
97 | 99 | ||
98 | }; | 100 | }; |
99 | 101 | ||
100 | u16 __bcm63xx_get_cpu_id(void) | ||
101 | { | ||
102 | return bcm63xx_cpu_id; | ||
103 | } | ||
104 | |||
105 | EXPORT_SYMBOL(__bcm63xx_get_cpu_id); | ||
106 | |||
107 | u8 bcm63xx_get_cpu_rev(void) | 102 | u8 bcm63xx_get_cpu_rev(void) |
108 | { | 103 | { |
109 | return bcm63xx_cpu_rev; | 104 | return bcm63xx_cpu_rev; |