Commit f99cb7a4 authored by Paul Mundt's avatar Paul Mundt

sh: Kill off more dead symbols.

Reported-by: default avatarRobert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent db02612b
...@@ -17,10 +17,8 @@ ...@@ -17,10 +17,8 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/hd64465/hd64465.h> #include <asm/hd64465/hd64465.h>
static void disable_hd64465_irq(unsigned int irq) static void disable_hd64465_irq(unsigned int irq)
...@@ -34,7 +32,6 @@ static void disable_hd64465_irq(unsigned int irq) ...@@ -34,7 +32,6 @@ static void disable_hd64465_irq(unsigned int irq)
outw(nimr, HD64465_REG_NIMR); outw(nimr, HD64465_REG_NIMR);
} }
static void enable_hd64465_irq(unsigned int irq) static void enable_hd64465_irq(unsigned int irq)
{ {
unsigned short nimr; unsigned short nimr;
...@@ -46,33 +43,28 @@ static void enable_hd64465_irq(unsigned int irq) ...@@ -46,33 +43,28 @@ static void enable_hd64465_irq(unsigned int irq)
outw(nimr, HD64465_REG_NIMR); outw(nimr, HD64465_REG_NIMR);
} }
static void mask_and_ack_hd64465(unsigned int irq) static void mask_and_ack_hd64465(unsigned int irq)
{ {
disable_hd64465_irq(irq); disable_hd64465_irq(irq);
} }
static void end_hd64465_irq(unsigned int irq) static void end_hd64465_irq(unsigned int irq)
{ {
if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS))) if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
enable_hd64465_irq(irq); enable_hd64465_irq(irq);
} }
static unsigned int startup_hd64465_irq(unsigned int irq) static unsigned int startup_hd64465_irq(unsigned int irq)
{ {
enable_hd64465_irq(irq); enable_hd64465_irq(irq);
return 0; return 0;
} }
static void shutdown_hd64465_irq(unsigned int irq) static void shutdown_hd64465_irq(unsigned int irq)
{ {
disable_hd64465_irq(irq); disable_hd64465_irq(irq);
} }
static struct hw_interrupt_type hd64465_irq_type = { static struct hw_interrupt_type hd64465_irq_type = {
.typename = "HD64465-IRQ", .typename = "HD64465-IRQ",
.startup = startup_hd64465_irq, .startup = startup_hd64465_irq,
...@@ -83,7 +75,6 @@ static struct hw_interrupt_type hd64465_irq_type = { ...@@ -83,7 +75,6 @@ static struct hw_interrupt_type hd64465_irq_type = {
.end = end_hd64465_irq, .end = end_hd64465_irq,
}; };
static irqreturn_t hd64465_interrupt(int irq, void *dev_id) static irqreturn_t hd64465_interrupt(int irq, void *dev_id)
{ {
printk(KERN_INFO printk(KERN_INFO
...@@ -93,9 +84,6 @@ static irqreturn_t hd64465_interrupt(int irq, void *dev_id) ...@@ -93,9 +84,6 @@ static irqreturn_t hd64465_interrupt(int irq, void *dev_id)
return IRQ_NONE; return IRQ_NONE;
} }
/*====================================================*/
/* /*
* Support for a secondary IRQ demux step. This is necessary * Support for a secondary IRQ demux step. This is necessary
* because the HD64465 presents a very thin interface to the * because the HD64465 presents a very thin interface to the
...@@ -103,8 +91,7 @@ static irqreturn_t hd64465_interrupt(int irq, void *dev_id) ...@@ -103,8 +91,7 @@ static irqreturn_t hd64465_interrupt(int irq, void *dev_id)
* normally done in hardware by other PCMCIA host bridges is * normally done in hardware by other PCMCIA host bridges is
* instead done in software. * instead done in software.
*/ */
static struct static struct {
{
int (*func)(int, void *); int (*func)(int, void *);
void *dev; void *dev;
} hd64465_demux[HD64465_IRQ_NUM]; } hd64465_demux[HD64465_IRQ_NUM];
...@@ -123,8 +110,6 @@ void hd64465_unregister_irq_demux(int irq) ...@@ -123,8 +110,6 @@ void hd64465_unregister_irq_demux(int irq)
} }
EXPORT_SYMBOL(hd64465_unregister_irq_demux); EXPORT_SYMBOL(hd64465_unregister_irq_demux);
int hd64465_irq_demux(int irq) int hd64465_irq_demux(int irq)
{ {
if (irq == CONFIG_HD64465_IRQ) { if (irq == CONFIG_HD64465_IRQ) {
...@@ -154,7 +139,6 @@ static struct irqaction irq0 = { ...@@ -154,7 +139,6 @@ static struct irqaction irq0 = {
.name = "HD64465", .name = "HD64465",
}; };
static int __init setup_hd64465(void) static int __init setup_hd64465(void)
{ {
int i; int i;
...@@ -185,16 +169,13 @@ static int __init setup_hd64465(void) ...@@ -185,16 +169,13 @@ static int __init setup_hd64465(void)
setup_irq(CONFIG_HD64465_IRQ, &irq0); setup_irq(CONFIG_HD64465_IRQ, &irq0);
#ifdef CONFIG_SERIAL
/* wake up the UART from STANDBY at this point */ /* wake up the UART from STANDBY at this point */
smscr = inw(HD64465_REG_SMSCR); smscr = inw(HD64465_REG_SMSCR);
outw(smscr & (~HD64465_SMSCR_UARTST), HD64465_REG_SMSCR); outw(smscr & (~HD64465_SMSCR_UARTST), HD64465_REG_SMSCR);
/* remap IO ports for first ISA serial port to HD64465 UART */ /* remap IO ports for first ISA serial port to HD64465 UART */
hd64465_port_map(0x3f8, 8, CONFIG_HD64465_IOBASE + 0x8000, 1); hd64465_port_map(0x3f8, 8, CONFIG_HD64465_IOBASE + 0x8000, 1);
#endif
return 0; return 0;
} }
module_init(setup_hd64465); module_init(setup_hd64465);
...@@ -231,7 +231,6 @@ CONFIG_CPU_LITTLE_ENDIAN=y ...@@ -231,7 +231,6 @@ CONFIG_CPU_LITTLE_ENDIAN=y
# CONFIG_SH_DSP is not set # CONFIG_SH_DSP is not set
# CONFIG_SH_ADC is not set # CONFIG_SH_ADC is not set
CONFIG_CPU_HAS_INTEVT=y CONFIG_CPU_HAS_INTEVT=y
CONFIG_CPU_HAS_PINT_IRQ=y
CONFIG_CPU_HAS_IPR_IRQ=y CONFIG_CPU_HAS_IPR_IRQ=y
CONFIG_CPU_HAS_SR_RB=y CONFIG_CPU_HAS_SR_RB=y
......
...@@ -248,9 +248,6 @@ asmlinkage void do_softirq(void) ...@@ -248,9 +248,6 @@ asmlinkage void do_softirq(void)
void __init init_IRQ(void) void __init init_IRQ(void)
{ {
#ifdef CONFIG_CPU_HAS_PINT_IRQ
init_IRQ_pint();
#endif
plat_irq_setup(); plat_irq_setup();
/* Perform the machine specific initialisation */ /* Perform the machine specific initialisation */
......
...@@ -630,7 +630,7 @@ static int misaligned_fpu_load(struct pt_regs *regs, ...@@ -630,7 +630,7 @@ static int misaligned_fpu_load(struct pt_regs *regs,
current->thread.fpu.hard.fp_regs[destreg] = buflo; current->thread.fpu.hard.fp_regs[destreg] = buflo;
current->thread.fpu.hard.fp_regs[destreg+1] = bufhi; current->thread.fpu.hard.fp_regs[destreg+1] = bufhi;
} else { } else {
#if defined(CONFIG_LITTLE_ENDIAN) #if defined(CONFIG_CPU_LITTLE_ENDIAN)
current->thread.fpu.hard.fp_regs[destreg] = bufhi; current->thread.fpu.hard.fp_regs[destreg] = bufhi;
current->thread.fpu.hard.fp_regs[destreg+1] = buflo; current->thread.fpu.hard.fp_regs[destreg+1] = buflo;
#else #else
...@@ -700,7 +700,7 @@ static int misaligned_fpu_store(struct pt_regs *regs, ...@@ -700,7 +700,7 @@ static int misaligned_fpu_store(struct pt_regs *regs,
buflo = current->thread.fpu.hard.fp_regs[srcreg]; buflo = current->thread.fpu.hard.fp_regs[srcreg];
bufhi = current->thread.fpu.hard.fp_regs[srcreg+1]; bufhi = current->thread.fpu.hard.fp_regs[srcreg+1];
} else { } else {
#if defined(CONFIG_LITTLE_ENDIAN) #if defined(CONFIG_CPU_LITTLE_ENDIAN)
bufhi = current->thread.fpu.hard.fp_regs[srcreg]; bufhi = current->thread.fpu.hard.fp_regs[srcreg];
buflo = current->thread.fpu.hard.fp_regs[srcreg+1]; buflo = current->thread.fpu.hard.fp_regs[srcreg+1];
#else #else
......
...@@ -51,7 +51,7 @@ SECTIONS ...@@ -51,7 +51,7 @@ SECTIONS
KPROBES_TEXT KPROBES_TEXT
*(.fixup) *(.fixup)
*(.gnu.warning) *(.gnu.warning)
#ifdef CONFIG_LITTLE_ENDIAN #ifdef CONFIG_CPU_LITTLE_ENDIAN
} = 0x6ff0fff0 } = 0x6ff0fff0
#else #else
} = 0xf0fff06f } = 0xf0fff06f
......
...@@ -16,12 +16,6 @@ ...@@ -16,12 +16,6 @@
/* This has to be a common function because the next location to fill /* This has to be a common function because the next location to fill
* information is shared. */ * information is shared. */
extern void __do_tlb_refill(unsigned long address, unsigned long long is_text_not_data, pte_t *pte); extern void __do_tlb_refill(unsigned long address, unsigned long long is_text_not_data, pte_t *pte);
/* Profiling counter. */
#ifdef CONFIG_SH64_PROC_TLB
extern unsigned long long calls_to_do_fast_page_fault;
#endif
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif /* __ASM_SH_CPU_SH5_MMU_CONTEXT_H */ #endif /* __ASM_SH_CPU_SH5_MMU_CONTEXT_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment