提交 fb247449 编写于 作者: S Stephen Rothwell 提交者: Benjamin Herrenschmidt

powerpc/pmi: Irq handlers return irqreturn_t

Commit bedd30d9 ("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: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 56aa4129
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册