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

Commit 456dc301 authored by Feng Tang's avatar Feng Tang Committed by Matthew Garrett
Browse files

[PATCH] intel_pmic_gpio: modify EOI handling following change of kernel irq subsystem



Latest kernel has many changes in IRQ subsystem and its interfaces, like adding
"irq_eoi" for struct irq_chip, this patch will make it support both the new
and old interface.

Cc: Alek Du <alek.du@intel.com>
Signed-off-by: default avatarFeng Tang <feng.tang@intel.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 21365851
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -244,7 +244,11 @@ static void pmic_irq_handler(unsigned irq, struct irq_desc *desc)
			generic_handle_irq(pg->irq_base + gpio);
		}
	}
	desc->chip->eoi(irq);

	if (desc->chip->irq_eoi)
		desc->chip->irq_eoi(irq_get_irq_data(irq));
	else
		dev_warn(pg->chip.dev, "missing EOI handler for irq %d\n", irq);
}

static int __devinit platform_pmic_gpio_probe(struct platform_device *pdev)