]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mfd: Don't use NO_IRQ in WM8350
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 15 Oct 2008 10:28:06 +0000 (12:28 +0200)
committerSamuel Ortiz <samuel@sortiz.org>
Sun, 19 Oct 2008 20:54:12 +0000 (22:54 +0200)
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 <sfr@canb.auug.org.au>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/wm8350-core.c

index 25a7a5d08bce3bf8867c9f48eeda555df6a88a7f..bf87f675e7fa8a523be49287d9d99354ad6e31e3 100644 (file)
@@ -1217,7 +1217,7 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq,
 
        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) {