From broonie@opensource.wolfsonmicro.com Wed Oct 15 12:27:50 2008 Date: Wed, 15 Oct 2008 11:20:54 +0100 From: Mark Brown To: Samuel Ortiz Cc: linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown Subject: [PATCH] mfd: Don't use NO_IRQ in WM8350 NO_IRQ is only defined on some architectures - the general way to test for an invalid IRQ in the modern kernel is by comparing with zero. Reported-by: Stephen Rothwell Signed-off-by: Mark Brown --- This is a build fix for platforms that don't define NO_IRQ (which is most of them). Please merge as soon as possible. drivers/mfd/wm8350-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/mfd/wm8350-core.c +++ b/drivers/mfd/wm8350-core.c @@ -1217,7 +1217,7 @@ int wm8350_device_init(struct wm8350 *wm mutex_init(&wm8350->irq_mutex); INIT_WORK(&wm8350->irq_work, wm8350_irq_worker); - if (irq != NO_IRQ) { + if (irq) { ret = request_irq(irq, wm8350_irq, 0, "wm8350", wm8350); if (ret != 0) {