提交 f4c547eb 编写于 作者: T Thomas Gleixner

mn10300: Convert genirq namespace

Convert to new function names. Converted with coccinelle.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 a120017c
...@@ -263,7 +263,7 @@ void set_intr_level(int irq, u16 level) ...@@ -263,7 +263,7 @@ void set_intr_level(int irq, u16 level)
*/ */
void mn10300_set_lateack_irq_type(int irq) void mn10300_set_lateack_irq_type(int irq)
{ {
set_irq_chip_and_handler(irq, &mn10300_cpu_pic_level, irq_set_chip_and_handler(irq, &mn10300_cpu_pic_level,
handle_level_irq); handle_level_irq);
} }
...@@ -275,12 +275,12 @@ void __init init_IRQ(void) ...@@ -275,12 +275,12 @@ void __init init_IRQ(void)
int irq; int irq;
for (irq = 0; irq < NR_IRQS; irq++) for (irq = 0; irq < NR_IRQS; irq++)
if (get_irq_chip(irq) == &no_irq_chip) if (irq_get_chip(irq) == &no_irq_chip)
/* due to the PIC latching interrupt requests, even /* due to the PIC latching interrupt requests, even
* when the IRQ is disabled, IRQ_PENDING is superfluous * when the IRQ is disabled, IRQ_PENDING is superfluous
* and we can use handle_level_irq() for edge-triggered * and we can use handle_level_irq() for edge-triggered
* interrupts */ * interrupts */
set_irq_chip_and_handler(irq, &mn10300_cpu_pic_edge, irq_set_chip_and_handler(irq, &mn10300_cpu_pic_edge,
handle_level_irq); handle_level_irq);
unit_init_IRQ(); unit_init_IRQ();
......
...@@ -933,7 +933,7 @@ static int mn10300_serial_startup(struct uart_port *_port) ...@@ -933,7 +933,7 @@ static int mn10300_serial_startup(struct uart_port *_port)
NUM2GxICR_LEVEL(CONFIG_MN10300_SERIAL_IRQ_LEVEL)); NUM2GxICR_LEVEL(CONFIG_MN10300_SERIAL_IRQ_LEVEL));
set_intr_level(port->tx_irq, set_intr_level(port->tx_irq,
NUM2GxICR_LEVEL(CONFIG_MN10300_SERIAL_IRQ_LEVEL)); NUM2GxICR_LEVEL(CONFIG_MN10300_SERIAL_IRQ_LEVEL));
set_irq_chip(port->tm_irq, &mn10300_serial_pic); irq_set_chip(port->tm_irq, &mn10300_serial_pic);
if (request_irq(port->rx_irq, mn10300_serial_interrupt, if (request_irq(port->rx_irq, mn10300_serial_interrupt,
IRQF_DISABLED, port->rx_name, port) < 0) IRQF_DISABLED, port->rx_name, port) < 0)
......
...@@ -156,15 +156,15 @@ static void init_ipi(void) ...@@ -156,15 +156,15 @@ static void init_ipi(void)
u16 tmp16; u16 tmp16;
/* set up the reschedule IPI */ /* set up the reschedule IPI */
set_irq_chip_and_handler(RESCHEDULE_IPI, irq_set_chip_and_handler(RESCHEDULE_IPI, &mn10300_ipi_type,
&mn10300_ipi_type, handle_percpu_irq); handle_percpu_irq);
setup_irq(RESCHEDULE_IPI, &reschedule_ipi); setup_irq(RESCHEDULE_IPI, &reschedule_ipi);
set_intr_level(RESCHEDULE_IPI, RESCHEDULE_GxICR_LV); set_intr_level(RESCHEDULE_IPI, RESCHEDULE_GxICR_LV);
mn10300_ipi_enable(RESCHEDULE_IPI); mn10300_ipi_enable(RESCHEDULE_IPI);
/* set up the call function IPI */ /* set up the call function IPI */
set_irq_chip_and_handler(CALL_FUNC_SINGLE_IPI, irq_set_chip_and_handler(CALL_FUNC_SINGLE_IPI, &mn10300_ipi_type,
&mn10300_ipi_type, handle_percpu_irq); handle_percpu_irq);
setup_irq(CALL_FUNC_SINGLE_IPI, &call_function_ipi); setup_irq(CALL_FUNC_SINGLE_IPI, &call_function_ipi);
set_intr_level(CALL_FUNC_SINGLE_IPI, CALL_FUNCTION_GxICR_LV); set_intr_level(CALL_FUNC_SINGLE_IPI, CALL_FUNCTION_GxICR_LV);
mn10300_ipi_enable(CALL_FUNC_SINGLE_IPI); mn10300_ipi_enable(CALL_FUNC_SINGLE_IPI);
...@@ -172,8 +172,8 @@ static void init_ipi(void) ...@@ -172,8 +172,8 @@ static void init_ipi(void)
/* set up the local timer IPI */ /* set up the local timer IPI */
#if !defined(CONFIG_GENERIC_CLOCKEVENTS) || \ #if !defined(CONFIG_GENERIC_CLOCKEVENTS) || \
defined(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST) defined(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST)
set_irq_chip_and_handler(LOCAL_TIMER_IPI, irq_set_chip_and_handler(LOCAL_TIMER_IPI, &mn10300_ipi_type,
&mn10300_ipi_type, handle_percpu_irq); handle_percpu_irq);
setup_irq(LOCAL_TIMER_IPI, &local_timer_ipi); setup_irq(LOCAL_TIMER_IPI, &local_timer_ipi);
set_intr_level(LOCAL_TIMER_IPI, LOCAL_TIMER_GxICR_LV); set_intr_level(LOCAL_TIMER_IPI, LOCAL_TIMER_GxICR_LV);
mn10300_ipi_enable(LOCAL_TIMER_IPI); mn10300_ipi_enable(LOCAL_TIMER_IPI);
......
...@@ -100,7 +100,8 @@ void __init irq_fpga_init(void) ...@@ -100,7 +100,8 @@ void __init irq_fpga_init(void)
SyncExBus(); SyncExBus();
for (irq = NR_CPU_IRQS; irq < NR_IRQS; irq++) for (irq = NR_CPU_IRQS; irq < NR_IRQS; irq++)
set_irq_chip_and_handler(irq, &asb2364_fpga_pic, handle_level_irq); irq_set_chip_and_handler(irq, &asb2364_fpga_pic,
handle_level_irq);
/* the FPGA drives the XIRQ1 input on the CPU PIC */ /* the FPGA drives the XIRQ1 input on the CPU PIC */
setup_irq(XIRQ1, &fpga_irq[0]); setup_irq(XIRQ1, &fpga_irq[0]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册