From: Stephen Rothwell Date: Wed, 18 Mar 2009 17:08:52 +0000 (+0000) Subject: powerpc/pmi: Irq handlers return irqreturn_t X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fb2474491cd3925e6ecece0823f4673af3b0d597;p=linux-2.6-omap-h63xx.git powerpc/pmi: Irq handlers return irqreturn_t Commit bedd30d986a05e32dc3eab874e4b9ed8a38058bb ("genirq: make irqreturn_t an enum") from the genirq tree in next-20090319 caused this new warning: arch/powerpc/sysdev/pmi.c: In function 'pmi_of_probe': arch/powerpc/sysdev/pmi.c:166: warning: passing argument 2 of 'request_irq' from incompatible pointer type Change the return type of the handler from "int" to "irqreturn_t". Cc: Thomas Gleixner Cc: Peter Zijlstra Signed-off-by: Stephen Rothwell Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/sysdev/pmi.c b/arch/powerpc/sysdev/pmi.c index c858749263e..aaa915998eb 100644 --- a/arch/powerpc/sysdev/pmi.c +++ b/arch/powerpc/sysdev/pmi.c @@ -50,7 +50,7 @@ struct pmi_data { static struct pmi_data *data; -static int pmi_irq_handler(int irq, void *dev_id) +static irqreturn_t pmi_irq_handler(int irq, void *dev_id) { u8 type; int rc;