提交 193e7a5f 编写于 作者: T Thomas Gleixner 提交者: David Howells

frv: Convert mb93091 irq_chip to new functions

Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Signed-off-by: NDavid Howells <dhowells@redhat.com>
上级 303fef90
...@@ -36,45 +36,45 @@ ...@@ -36,45 +36,45 @@
/* /*
* on-motherboard FPGA PIC operations * on-motherboard FPGA PIC operations
*/ */
static void frv_fpga_mask(unsigned int irq) static void frv_fpga_mask(struct irq_data *d)
{ {
uint16_t imr = __get_IMR(); uint16_t imr = __get_IMR();
imr |= 1 << (irq - IRQ_BASE_FPGA); imr |= 1 << (d->irq - IRQ_BASE_FPGA);
__set_IMR(imr); __set_IMR(imr);
} }
static void frv_fpga_ack(unsigned int irq) static void frv_fpga_ack(struct irq_data *d)
{ {
__clr_IFR(1 << (irq - IRQ_BASE_FPGA)); __clr_IFR(1 << (d->irq - IRQ_BASE_FPGA));
} }
static void frv_fpga_mask_ack(unsigned int irq) static void frv_fpga_mask_ack(struct irq_data *d)
{ {
uint16_t imr = __get_IMR(); uint16_t imr = __get_IMR();
imr |= 1 << (irq - IRQ_BASE_FPGA); imr |= 1 << (d->irq - IRQ_BASE_FPGA);
__set_IMR(imr); __set_IMR(imr);
__clr_IFR(1 << (irq - IRQ_BASE_FPGA)); __clr_IFR(1 << (d->irq - IRQ_BASE_FPGA));
} }
static void frv_fpga_unmask(unsigned int irq) static void frv_fpga_unmask(struct irq_data *d)
{ {
uint16_t imr = __get_IMR(); uint16_t imr = __get_IMR();
imr &= ~(1 << (irq - IRQ_BASE_FPGA)); imr &= ~(1 << (d->irq - IRQ_BASE_FPGA));
__set_IMR(imr); __set_IMR(imr);
} }
static struct irq_chip frv_fpga_pic = { static struct irq_chip frv_fpga_pic = {
.name = "mb93091", .name = "mb93091",
.ack = frv_fpga_ack, .irq_ack = frv_fpga_ack,
.mask = frv_fpga_mask, .irq_mask = frv_fpga_mask,
.mask_ack = frv_fpga_mask_ack, .irq_mask_ack = frv_fpga_mask_ack,
.unmask = frv_fpga_unmask, .irq_unmask = frv_fpga_unmask,
}; };
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册