Skip to content

Commit

Permalink
powerpc/pmi: Irq handlers return irqreturn_t
Browse files Browse the repository at this point in the history
Commit bedd30d ("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 <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Stephen Rothwell authored and Benjamin Herrenschmidt committed Mar 24, 2009
1 parent 56aa412 commit fb24744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/pmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fb24744

Please sign in to comment.