Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2eb5af44 authored by Wolfram Sang's avatar Wolfram Sang Committed by Russell King
Browse files

ARM: 6979/1: mach-vt8500: add forgotten irq_data conversion



This platform has not been converted to 'struct irq_data' when the big
pile was done and fails to compile nowadays. Tested on a JayPC-Tablet.

Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Acked-by: default avatarAlexey Charkov <alchark@gmail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 0371d3f7
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
@@ -39,9 +39,10 @@
static void __iomem *ic_regbase;
static void __iomem *sic_regbase;

static void vt8500_irq_mask(unsigned int irq)
static void vt8500_irq_mask(struct irq_data *d)
{
	void __iomem *base = ic_regbase;
	unsigned irq = d->irq;
	u8 edge;

	if (irq >= 64) {
@@ -64,9 +65,10 @@ static void vt8500_irq_mask(unsigned int irq)
	}
}

static void vt8500_irq_unmask(unsigned int irq)
static void vt8500_irq_unmask(struct irq_data *d)
{
	void __iomem *base = ic_regbase;
	unsigned irq = d->irq;
	u8 dctr;

	if (irq >= 64) {
@@ -78,10 +80,11 @@ static void vt8500_irq_unmask(unsigned int irq)
	writeb(dctr, base + VT8500_IC_DCTR + irq);
}

static int vt8500_irq_set_type(unsigned int irq, unsigned int flow_type)
static int vt8500_irq_set_type(struct irq_data *d, unsigned int flow_type)
{
	void __iomem *base = ic_regbase;
	unsigned int orig_irq = irq;
	unsigned irq = d->irq;
	unsigned orig_irq = irq;
	u8 dctr;

	if (irq >= 64) {
@@ -115,10 +118,10 @@ static int vt8500_irq_set_type(unsigned int irq, unsigned int flow_type)

static struct irq_chip vt8500_irq_chip = {
	.name = "vt8500",
	.ack       = vt8500_irq_mask,
	.mask      = vt8500_irq_mask,
	.unmask    = vt8500_irq_unmask,
	.set_type  = vt8500_irq_set_type,
	.irq_ack = vt8500_irq_mask,
	.irq_mask = vt8500_irq_mask,
	.irq_unmask = vt8500_irq_unmask,
	.irq_set_type = vt8500_irq_set_type,
};

void __init vt8500_init_irq(void)