Skip to content

Commit ea044ec

Browse files
daniel-hellstromdavem330
authored andcommitted
sparc32,leon: cleaned away code from the LEON2 days
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2cf9530 commit ea044ec

2 files changed

Lines changed: 1 addition & 24 deletions

File tree

‎arch/sparc/include/asm/leon.h‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,6 @@
5252
#define LEON_DIAGF_VALID 0x2000
5353
#define LEON_DIAGF_VALID_SHIFT 13
5454

55-
/*
56-
* Interrupt Sources
57-
*
58-
* The interrupt source numbers directly map to the trap type and to
59-
* the bits used in the Interrupt Clear, Interrupt Force, Interrupt Mask,
60-
* and the Interrupt Pending Registers.
61-
*/
62-
#define LEON_INTERRUPT_CORRECTABLE_MEMORY_ERROR 1
63-
#define LEON_INTERRUPT_UART_1_RX_TX 2
64-
#define LEON_INTERRUPT_UART_0_RX_TX 3
65-
#define LEON_INTERRUPT_EXTERNAL_0 4
66-
#define LEON_INTERRUPT_EXTERNAL_1 5
67-
#define LEON_INTERRUPT_EXTERNAL_2 6
68-
#define LEON_INTERRUPT_EXTERNAL_3 7
69-
#define LEON_INTERRUPT_TIMER1 8
70-
#define LEON_INTERRUPT_TIMER2 9
71-
#define LEON_INTERRUPT_EMPTY1 10
72-
#define LEON_INTERRUPT_EMPTY2 11
73-
#define LEON_INTERRUPT_OPEN_ETH 12
74-
#define LEON_INTERRUPT_EMPTY4 13
75-
#define LEON_INTERRUPT_EMPTY5 14
76-
#define LEON_INTERRUPT_EMPTY6 15
77-
7855
/* irq masks */
7956
#define LEON_HARD_INT(x) (1 << (x)) /* irq 0-15 */
8057
#define LEON_IRQMASK_R 0x0000fffe /* bit 15- 1 of lregs.irqmask */

‎arch/sparc/kernel/leon_kernel.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void __init leon_init_timers(irq_handler_t counter_fn)
316316

317317
if (err) {
318318
printk(KERN_ERR "leon_time_init: unable to attach IRQ%d\n",
319-
LEON_INTERRUPT_TIMER1);
319+
irq);
320320
prom_halt();
321321
}
322322

0 commit comments

Comments
 (0)