summaryrefslogtreecommitdiff
path: root/arch/sh/boards/mach-se/7724
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-10-27 06:30:07 (GMT)
committerPaul Mundt <lethal@linux-sh.org>2010-10-27 06:30:07 (GMT)
commit15ff2c67ab5c45c7382374bc43a5ad218a36045f (patch)
tree0cd183c5d0dd740ee13bec53220bd32fed75450b /arch/sh/boards/mach-se/7724
parente28abafbab4205bda07087ea29cde39a14ba82c9 (diff)
downloadlinux-fsl-qoriq-15ff2c67ab5c45c7382374bc43a5ad218a36045f.tar.xz
sh: mach-se: irq_data conversion.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/mach-se/7724')
-rw-r--r--arch/sh/boards/mach-se/7724/irq.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/sh/boards/mach-se/7724/irq.c b/arch/sh/boards/mach-se/7724/irq.c
index 0942be2..5bd87c2 100644
--- a/arch/sh/boards/mach-se/7724/irq.c
+++ b/arch/sh/boards/mach-se/7724/irq.c
@@ -68,25 +68,26 @@ static struct fpga_irq get_fpga_irq(unsigned int irq)
return set;
}
-static void disable_se7724_irq(unsigned int irq)
+static void disable_se7724_irq(struct irq_data *data)
{
+ unsigned int irq = data->irq;
struct fpga_irq set = get_fpga_irq(fpga2irq(irq));
unsigned int bit = irq - set.base;
__raw_writew(__raw_readw(set.mraddr) | 0x0001 << bit, set.mraddr);
}
-static void enable_se7724_irq(unsigned int irq)
+static void enable_se7724_irq(struct irq_data *data)
{
+ unsigned int irq = data->irq;
struct fpga_irq set = get_fpga_irq(fpga2irq(irq));
unsigned int bit = irq - set.base;
__raw_writew(__raw_readw(set.mraddr) & ~(0x0001 << bit), set.mraddr);
}
static struct irq_chip se7724_irq_chip __read_mostly = {
- .name = "SE7724-FPGA",
- .mask = disable_se7724_irq,
- .unmask = enable_se7724_irq,
- .mask_ack = disable_se7724_irq,
+ .name = "SE7724-FPGA",
+ .irq_mask = disable_se7724_irq,
+ .irq_unmask = enable_se7724_irq,
};
static void se7724_irq_demux(unsigned int irq, struct irq_desc *desc)