Skip to content

Commit fd633cf

Browse files
juhosgJohn Crispin
authored andcommitted
ath79: remove ATH79_MISC_IRQ_* defines
Use the ATH79_MISC_IRQ() macro instead. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/4930/ Signed-off-by: John Crispin <blogic@openwrt.org>
1 parent 7e69c10 commit fd633cf

4 files changed

Lines changed: 5 additions & 18 deletions

File tree

‎arch/mips/ath79/dev-common.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static struct resource ath79_uart_resources[] = {
3636
static struct plat_serial8250_port ath79_uart_data[] = {
3737
{
3838
.mapbase = AR71XX_UART_BASE,
39-
.irq = ATH79_MISC_IRQ_UART,
39+
.irq = ATH79_MISC_IRQ(3),
4040
.flags = AR71XX_UART_FLAGS,
4141
.iotype = UPIO_MEM32,
4242
.regshift = 2,
@@ -62,8 +62,8 @@ static struct resource ar933x_uart_resources[] = {
6262
.flags = IORESOURCE_MEM,
6363
},
6464
{
65-
.start = ATH79_MISC_IRQ_UART,
66-
.end = ATH79_MISC_IRQ_UART,
65+
.start = ATH79_MISC_IRQ(3),
66+
.end = ATH79_MISC_IRQ(3),
6767
.flags = IORESOURCE_IRQ,
6868
},
6969
};

‎arch/mips/ath79/dev-usb.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static void __init ath79_usb_setup(void)
107107
mdelay(900);
108108

109109
ath79_usb_init_resource(ath79_ohci_resources, AR71XX_OHCI_BASE,
110-
AR71XX_OHCI_SIZE, ATH79_MISC_IRQ_OHCI);
110+
AR71XX_OHCI_SIZE, ATH79_MISC_IRQ(6));
111111
platform_device_register(&ath79_ohci_device);
112112

113113
ath79_usb_init_resource(ath79_ehci_resources, AR71XX_EHCI_BASE,

‎arch/mips/ath79/irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void __init arch_init_irq(void)
265265
BUG();
266266
}
267267

268-
cp0_perfcount_irq = ATH79_MISC_IRQ_PERFC;
268+
cp0_perfcount_irq = ATH79_MISC_IRQ(5);
269269
mips_cpu_irq_init();
270270
ath79_misc_irq_init();
271271

‎arch/mips/include/asm/mach-ath79/irq.h‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,6 @@
2626
#define ATH79_IP2_IRQ_COUNT 2
2727
#define ATH79_IP2_IRQ(_x) (ATH79_IP2_IRQ_BASE + (_x))
2828

29-
#define ATH79_MISC_IRQ_TIMER (ATH79_MISC_IRQ_BASE + 0)
30-
#define ATH79_MISC_IRQ_ERROR (ATH79_MISC_IRQ_BASE + 1)
31-
#define ATH79_MISC_IRQ_GPIO (ATH79_MISC_IRQ_BASE + 2)
32-
#define ATH79_MISC_IRQ_UART (ATH79_MISC_IRQ_BASE + 3)
33-
#define ATH79_MISC_IRQ_WDOG (ATH79_MISC_IRQ_BASE + 4)
34-
#define ATH79_MISC_IRQ_PERFC (ATH79_MISC_IRQ_BASE + 5)
35-
#define ATH79_MISC_IRQ_OHCI (ATH79_MISC_IRQ_BASE + 6)
36-
#define ATH79_MISC_IRQ_DMA (ATH79_MISC_IRQ_BASE + 7)
37-
#define ATH79_MISC_IRQ_TIMER2 (ATH79_MISC_IRQ_BASE + 8)
38-
#define ATH79_MISC_IRQ_TIMER3 (ATH79_MISC_IRQ_BASE + 9)
39-
#define ATH79_MISC_IRQ_TIMER4 (ATH79_MISC_IRQ_BASE + 10)
40-
#define ATH79_MISC_IRQ_ETHSW (ATH79_MISC_IRQ_BASE + 12)
41-
4229
#include_next <irq.h>
4330

4431
#endif /* __ASM_MACH_ATH79_IRQ_H */

0 commit comments

Comments
 (0)